public class FilterData extends java.lang.Object implements IFilterData
| Constructor and Description |
|---|
FilterData(ISpeciesRoot root,
IIndividual individual,
ISpeciesType type) |
| Modifier and Type | Method and Description |
|---|---|
IIndividual |
getIndividual()
If the individual is present, returns the individual,
otherwise throws
NoSuchElementException. |
ISpeciesRoot |
getRoot()
If the root is present, returns the root,
otherwise throws
NoSuchElementException. |
ISpeciesType |
getType()
If the type is present, returns the type,
otherwise throws
NoSuchElementException. |
boolean |
isPresent() |
public FilterData(@Nullable
ISpeciesRoot root,
@Nullable
IIndividual individual,
@Nullable
ISpeciesType type)
public ISpeciesRoot getRoot()
IFilterDataNoSuchElementException.getRoot in interface IFilterDatapublic IIndividual getIndividual()
IFilterDataNoSuchElementException.getIndividual in interface IFilterDatapublic ISpeciesType getType()
IFilterDataNoSuchElementException.getType in interface IFilterDatapublic boolean isPresent()
isPresent in interface IFilterData