Enum TimeMarshallerProvider
- java.lang.Object
-
- java.lang.Enum<TimeMarshallerProvider>
-
- org.wildfly.clustering.marshalling.protostream.time.TimeMarshallerProvider
-
- All Implemented Interfaces:
Serializable,Comparable<TimeMarshallerProvider>,org.infinispan.protostream.BaseMarshaller<Object>,org.infinispan.protostream.ProtobufTagMarshaller<Object>,Marshallable<Object>,ProtoStreamMarshaller<Object>,ProtoStreamMarshallerProvider
public enum TimeMarshallerProvider extends Enum<TimeMarshallerProvider> implements ProtoStreamMarshallerProvider
Provider for java.time marshallers.- Author:
- Paul Ferraro
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAY_OF_WEEKDURATIONINSTANTLOCAL_DATELOCAL_DATE_TIMELOCAL_TIMEMONTHMONTH_DAYOFFSET_DATE_TIMEOFFSET_TIMEPERIODYEARYEAR_MONTHZONE_IDZONE_OFFSETZONED_DATE_TIME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtoStreamMarshaller<?>getMarshaller()static TimeMarshallerProvidervalueOf(String name)Returns the enum constant of this type with the specified name.static TimeMarshallerProvider[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.wildfly.clustering.marshalling.protostream.ProtoStreamMarshaller
getTypeName
-
Methods inherited from interface org.wildfly.clustering.marshalling.protostream.ProtoStreamMarshallerProvider
cast, getJavaClass, read, readFrom, write, writeTo
-
-
-
-
Enum Constant Detail
-
DAY_OF_WEEK
public static final TimeMarshallerProvider DAY_OF_WEEK
-
DURATION
public static final TimeMarshallerProvider DURATION
-
INSTANT
public static final TimeMarshallerProvider INSTANT
-
LOCAL_DATE
public static final TimeMarshallerProvider LOCAL_DATE
-
LOCAL_DATE_TIME
public static final TimeMarshallerProvider LOCAL_DATE_TIME
-
LOCAL_TIME
public static final TimeMarshallerProvider LOCAL_TIME
-
MONTH
public static final TimeMarshallerProvider MONTH
-
MONTH_DAY
public static final TimeMarshallerProvider MONTH_DAY
-
OFFSET_DATE_TIME
public static final TimeMarshallerProvider OFFSET_DATE_TIME
-
OFFSET_TIME
public static final TimeMarshallerProvider OFFSET_TIME
-
PERIOD
public static final TimeMarshallerProvider PERIOD
-
YEAR
public static final TimeMarshallerProvider YEAR
-
YEAR_MONTH
public static final TimeMarshallerProvider YEAR_MONTH
-
ZONE_ID
public static final TimeMarshallerProvider ZONE_ID
-
ZONE_OFFSET
public static final TimeMarshallerProvider ZONE_OFFSET
-
ZONED_DATE_TIME
public static final TimeMarshallerProvider ZONED_DATE_TIME
-
-
Method Detail
-
values
public static TimeMarshallerProvider[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TimeMarshallerProvider c : TimeMarshallerProvider.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeMarshallerProvider valueOf(String name)
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
-
getMarshaller
public ProtoStreamMarshaller<?> getMarshaller()
- Specified by:
getMarshallerin interfaceProtoStreamMarshallerProvider
-
-