public static final class ConfigData.Options
extends java.lang.Object
ConfigData.Option flags.| Modifier and Type | Field and Description |
|---|---|
static ConfigData.Options |
NONE
No options.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(ConfigData.Option option)
Returns if the given option is contained in this set.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
static ConfigData.Options |
of(ConfigData.Option... options)
Create a new instance with the given
ConfigData.Option values. |
java.lang.String |
toString() |
ConfigData.Options |
with(ConfigData.Option option)
Create a new
ConfigData.Options instance that contains the options in this set
including the given option. |
ConfigData.Options |
without(ConfigData.Option option)
Create a new
ConfigData.Options instance that contains the options in this set
excluding the given option. |
public static final ConfigData.Options NONE
public boolean contains(ConfigData.Option option)
option - the option to checktrue of the option is presentpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic ConfigData.Options without(ConfigData.Option option)
ConfigData.Options instance that contains the options in this set
excluding the given option.option - the option to excludeConfigData.Options instancepublic ConfigData.Options with(ConfigData.Option option)
ConfigData.Options instance that contains the options in this set
including the given option.option - the option to includeConfigData.Options instancepublic static ConfigData.Options of(ConfigData.Option... options)
ConfigData.Option values.options - the options to includeConfigData.Options instance