Package com.thunken.beacon
Enum BeaconMetaField
- All Implemented Interfaces:
Serializable
,Comparable<BeaconMetaField>
,java.lang.constant.Constable
,Predicate<String>
public enum BeaconMetaField extends Enum<BeaconMetaField> implements Predicate<String>
Enumerated type for BEACON meta fields.
Note: the current Javadoc for this project is incomplete. We rely on Lombok to generate boilerplate code, and Lombok does not plug into Javadoc. Generated methods and constructors are not included, and the Javadoc for other methods and constructors may be incomplete. See delombok and beacon#1 for more information.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BeaconMetaField.Type
Enumerated type for BEACON meta field types.static class
BeaconMetaField.ValueType
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_META_VALUE
-
Method Summary
Modifier and Type Method Description String
getDefaultValue()
Set<String>
getDefaultValues()
Deprecated.BeaconMetaField.Type
getType()
BeaconMetaField.ValueType
getValueType()
boolean
isRepeatable()
Deprecated.boolean
test(String value)
static BeaconMetaField
valueOf(String name)
Returns the enum constant of this type with the specified name.static BeaconMetaField[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ANNOTATION
-
CONTACT
-
CREATOR
-
DESCRIPTION
-
FEED
-
FORMAT
-
HOMEPAGE
-
INSTITUTION
-
MESSAGE
-
NAME
-
PREFIX
-
RELATION
-
SOURCESET
-
TARGET
-
TARGETSET
-
TIMESTAMP
-
UPDATE
-
-
Field Details
-
DEFAULT_META_VALUE
- See Also:
- Constant Field Values
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDefaultValue
-
getDefaultValues
Deprecated.Returns an immutable singleton set containing the default value for this meta field.- Returns:
- an immutable singleton set containing the default value for this meta field.
-
getType
-
getValueType
-
isRepeatable
Deprecated.Meta fields are not repeatable anymore, so this method always returnsfalse
.Returnstrue
if this meta field is repeatable.- Returns:
false
-
test
-
false
.