Annotation Type SetCodecType
-
@Retention(RUNTIME) @Target(METHOD) @Documented public @interface SetCodecType
Annotation that can be used on a set-type CMP field getter or setter method to indicate to Rhino a codec that should be used to serialise and serialise list elements. The CMP field must be declared with type
Set
or an array of this type.For a given set with element type X, the specific
DatatypeCodec
implementation class must have a type parameter T that is equal to X, or if T is itself a type variable then it must have an upper bound equal to X.- Since:
- Rhino 2.4.0
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends DatatypeCodec>
codec
Codec class name.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description EncodableSet.BackingStore
backingStore
The type of backing store to use for set elements.boolean
manageNullElements
Flag indicating if the serialisation logic should manage null elements.
-
-
-
Element Detail
-
codec
Class<? extends DatatypeCodec> codec
Codec class name.
- Since:
- Rhino 2.4.0
-
-
-
backingStore
EncodableSet.BackingStore backingStore
The type of backing store to use for set elements.
- Since:
- Rhino 2.4.0
- Default:
- com.opencloud.rhino.util.EncodableSet.BackingStore.HASH
-
-
-
manageNullElements
boolean manageNullElements
Flag indicating if the serialisation logic should manage null elements.
If this flag is set to
false
and the set might includenull
elements, then theDatatypeCodec
specified bycodec()
must be implemented to support the encoding and decoding ofnull
objects.- Since:
- Rhino 2.4.0
- See Also:
EncodableSet.manageNullElements()
,EncodableSet.writeElement(Object, DataOutput, EncoderUtils)
- Default:
- false
-
-