public class GenderProperties
extends java.lang.Object
Species
Constructor and Description |
---|
GenderProperties(Gender gender,
PaletteProperties[] palettes)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
PaletteProperties |
getDefaultPalette() |
Gender |
getGender()
Gets the gender
|
PaletteProperties |
getPalette(java.lang.String name)
Gets the
PaletteProperties associated with the given name
Will return null if not found |
PaletteProperties[] |
getPalettes()
Gets the palette properties of the palettes of the gender
|
java.util.List<PaletteProperties> |
getPalettes(java.util.function.Predicate<PaletteProperties> predicate)
Gets the palette properties of the palettes of the gender matching the predicate
|
boolean |
isDefaultPalette(PaletteProperties palette) |
public GenderProperties(Gender gender, PaletteProperties[] palettes)
gender
- The genderpalettes
- The palette properties of the genderpublic Gender getGender()
public PaletteProperties[] getPalettes()
public java.util.List<PaletteProperties> getPalettes(java.util.function.Predicate<PaletteProperties> predicate)
predicate
- the palettes should matchpublic PaletteProperties getPalette(java.lang.String name)
PaletteProperties
associated with the given name
Will return null if not foundname
- The name being searched forpublic PaletteProperties getDefaultPalette()
public boolean isDefaultPalette(PaletteProperties palette)