public class MockSimpleOption extends Object implements SimpleOption<MockSimpleOption>
Constructor and Description |
---|
MockSimpleOption() |
MockSimpleOption(SimpleOption<?> option) |
Modifier and Type | Method and Description |
---|---|
MockSimpleOption |
addChild(String value) |
boolean |
equals(Object o) |
List<MockSimpleOption> |
getChildOptions()
Return a list of options that exist under this option (i.e.
|
Long |
getOptionId()
The ID of the option or null if it currently does not have one.
|
String |
getValue()
The current value of the option.
|
int |
hashCode() |
MockSimpleOption |
parent() |
MockSimpleOption |
parent(MockSimpleOption parent) |
MockSimpleOption |
setId(Long id) |
MockSimpleOption |
setValue(String value) |
static com.google.common.base.Function<SimpleOption<?>,MockSimpleOption> |
toMock() |
String |
toString() |
public MockSimpleOption()
public MockSimpleOption(SimpleOption<?> option)
public static com.google.common.base.Function<SimpleOption<?>,MockSimpleOption> toMock()
@Nullable public Long getOptionId()
SimpleOption
getOptionId
in interface SimpleOption<MockSimpleOption>
public MockSimpleOption setId(Long id)
public String getValue()
SimpleOption
getValue
in interface SimpleOption<MockSimpleOption>
public MockSimpleOption setValue(String value)
@Nonnull public List<MockSimpleOption> getChildOptions()
SimpleOption
getChildOptions
in interface SimpleOption<MockSimpleOption>
public MockSimpleOption parent()
public MockSimpleOption parent(MockSimpleOption parent)
public MockSimpleOption addChild(String value)
Copyright © 2002-2015 Atlassian. All Rights Reserved.