Annotation Type ListCodecType


  • @Retention(RUNTIME)
    @Target(METHOD)
    @Documented
    public @interface ListCodecType

    Annotation that can be used on a list-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 List or an array of this type.

    For a given list with element type X, the specified 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.