public enum LocalTimeMarshaller extends Enum<LocalTimeMarshaller> implements FieldSetMarshaller<LocalTime,LocalTime>
LocalTime instances, using the following strategy:
LocalTime.MIDNIGHT as zero bytes| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
LocalTime |
getBuilder()
Returns a builder for use with
FieldSetMarshaller.readField(ProtoStreamReader, int, Object). |
int |
getFields()
Returns the number of fields written by this marshaller.
|
LocalTime |
readField(ProtoStreamReader reader,
int index,
LocalTime time)
Reads a single field from the specified reader at the specified index.
|
static LocalTimeMarshaller |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LocalTimeMarshaller[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeFields(ProtoStreamWriter writer,
int startIndex,
LocalTime time)
Writes the set of fields from the specified object to the specified writer beginning at the specified index.
|
public static final LocalTimeMarshaller INSTANCE
public static LocalTimeMarshaller[] values()
for (LocalTimeMarshaller c : LocalTimeMarshaller.values()) System.out.println(c);
public static LocalTimeMarshaller valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic LocalTime getBuilder()
FieldSetMarshallerFieldSetMarshaller.readField(ProtoStreamReader, int, Object).
May return a shared instance, if the builder type is immutable, or a new instance, if the builder is mutable.getBuilder in interface FieldSetMarshaller<LocalTime,LocalTime>public int getFields()
FieldSetMarshallergetFields in interface FieldSetMarshaller<LocalTime,LocalTime>public LocalTime readField(ProtoStreamReader reader, int index, LocalTime time) throws IOException
FieldSetMarshallerreadField in interface FieldSetMarshaller<LocalTime,LocalTime>reader - a ProtoStream readerindex - the field indextime - the builder to be populated with the read fieldIOException - if the field could not be readpublic void writeFields(ProtoStreamWriter writer, int startIndex, LocalTime time) throws IOException
FieldSetMarshallerwriteFields in interface FieldSetMarshaller<LocalTime,LocalTime>writer - a ProtoStream writerstartIndex - the start index for the embedded fieldstime - the value to be writtenIOException - if the value could not be writtenCopyright © 2022 JBoss by Red Hat. All rights reserved.