Class Settings.Corporation<T>
java.lang.Object
us.teaminceptus.novaconomy.api.settings.Settings.Corporation<T>
- All Implemented Interfaces:
Serializable,Settings.NovaSetting<T>
- Enclosing class:
- Settings
public static final class Settings.Corporation<T>
extends Object
implements Settings.NovaSetting<T>, Serializable
Represents Corporation Settings
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Settings.Corporation<Boolean>Whether the Corporation has enabled corporation-only chat.static final Settings.Corporation<Boolean>Whether random Products under this Corporation will be featured on the main Corporation page.static final Settings.Corporation<Corporation.JoinType>The privacy setting of a Corporation, determining how and whether businesses can join.static final Settings.Corporation<Boolean>Whether anyone can teleport to the Corporation's headquarters. -
Method Summary
Modifier and TypeMethodDescriptionbooleanFetches the default value of this setting.@Nullable SettingDescriptionFetches the description annotation on this NovaSetting.@NotNull StringFetches the display name of this setting in the current language.Fetches all of the possible values for this setting.getType()Fetches the type of setting this is.inthashCode()name()Fetches the identifier of this setting.parseValue(@NotNull String value) Parses a value from a string.static @Nullable Settings.Corporation<?>Fetches the Corporation Setting with the given name.static <T> Settings.Corporation<T>static @NotNull Settings.Corporation<?>[]values()Fetches an array of all of the Corporation Settings.
-
Field Details
-
JOIN_TYPE
The privacy setting of a Corporation, determining how and whether businesses can join. -
CHAT
Whether the Corporation has enabled corporation-only chat. -
PUBLIC_HEADQUARTERS
Whether anyone can teleport to the Corporation's headquarters. -
FEATURE_PRODUCTS
Whether random Products under this Corporation will be featured on the main Corporation page.
-
-
Method Details
-
getDefaultValue
Description copied from interface:Settings.NovaSettingFetches the default value of this setting.- Specified by:
getDefaultValuein interfaceSettings.NovaSetting<T>- Returns:
- default value of setting
-
name
Description copied from interface:Settings.NovaSettingFetches the identifier of this setting.- Specified by:
namein interfaceSettings.NovaSetting<T>- Returns:
- identifier of setting
-
getDisplayName
Description copied from interface:Settings.NovaSettingFetches the display name of this setting in the current language.- Specified by:
getDisplayNamein interfaceSettings.NovaSetting<T>- Returns:
- display name of setting
-
getDescription
Description copied from interface:Settings.NovaSettingFetches the description annotation on this NovaSetting. If no description is present, null is returned.- Specified by:
getDescriptionin interfaceSettings.NovaSetting<T>- Returns:
SettingDescriptionannotation
-
getPossibleValues
Description copied from interface:Settings.NovaSettingFetches all of the possible values for this setting.- Specified by:
getPossibleValuesin interfaceSettings.NovaSetting<T>- Returns:
- possible values of setting
-
values
Fetches an array of all of the Corporation Settings.- Returns:
- An array of all of the Corporation Settings.
-
valueOf
Fetches the Corporation Setting with the given name.- Parameters:
name- The name of the Corporation Setting.- Returns:
- Setting Found, or null if not found
-
valueOf
public static <T> Settings.Corporation<T> valueOf(@Nullable @Nullable String name, @Nullable @Nullable Class<T> clazz) - Type Parameters:
T- Type of the Setting- Parameters:
name- The name of the Corporation Setting.clazz- The type of the Corporation Setting.- Returns:
- Setting Found, or null if not found
-
getType
Description copied from interface:Settings.NovaSettingFetches the type of setting this is.- Specified by:
getTypein interfaceSettings.NovaSetting<T>- Returns:
- type of setting
-
parseValue
Description copied from interface:Settings.NovaSettingParses a value from a string.- Specified by:
parseValuein interfaceSettings.NovaSetting<T>- Parameters:
value- String to parse- Returns:
- Parsed value applicable to this setting
-
equals
-
hashCode
public int hashCode()
-