public class

MockSimpleOption

extends Object
implements SimpleOption<T extends SimpleOption<T>>
java.lang.Object
   ↳ com.atlassian.jira.issue.customfields.option.MockSimpleOption

Summary

Public Constructors
MockSimpleOption()
MockSimpleOption(SimpleOption<?> option)
Public Methods
MockSimpleOption addChild(String value)
boolean equals(Object o)
@Nonnull List<MockSimpleOption> getChildOptions()
Return a list of options that exist under this option (i.e.
@Nullable 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 Function<SimpleOption<?>, MockSimpleOption> toMock()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.customfields.option.SimpleOption

Public Constructors

public MockSimpleOption ()

public MockSimpleOption (SimpleOption<?> option)

Public Methods

public MockSimpleOption addChild (String value)

public boolean equals (Object o)

@Nonnull public List<MockSimpleOption> getChildOptions ()

Return a list of options that exist under this option (i.e. its children).

Returns
  • the list of options that exist under this option. An empty list is returned when such options exist.

@Nullable public Long getOptionId ()

The ID of the option or null if it currently does not have one.

Returns
  • the ID of the option or null if it does not have one.

public String getValue ()

The current value of the option. This is the option displayed to the user.

Returns
  • the value of the option.

public int hashCode ()

public MockSimpleOption parent ()

public MockSimpleOption parent (MockSimpleOption parent)

public MockSimpleOption setId (Long id)

public MockSimpleOption setValue (String value)

public static Function<SimpleOption<?>, MockSimpleOption> toMock ()

public String toString ()