Class ListCodec


  • public final class ListCodec
    extends TypeCodec<java.util.List<?>>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static ListCodec INSTANCE  
      static io.leangen.geantyref.TypeToken<java.util.List<?>> TYPE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<?> deserialize​(java.lang.reflect.AnnotatedType type, java.lang.Object toDeserialize, NodeContext context)  
      java.lang.Object serialize​(java.lang.reflect.AnnotatedType type, java.util.List<?> valueAsList, NodeContext context)  
      • Methods inherited from class org.geysermc.configutils.node.codec.type.TypeCodec

        type
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • INSTANCE

        public static final ListCodec INSTANCE
      • TYPE

        public static final io.leangen.geantyref.TypeToken<java.util.List<?>> TYPE
    • Method Detail

      • deserialize

        public java.util.List<?> deserialize​(java.lang.reflect.AnnotatedType type,
                                             java.lang.Object toDeserialize,
                                             NodeContext context)
        Specified by:
        deserialize in class TypeCodec<java.util.List<?>>
      • serialize

        public java.lang.Object serialize​(java.lang.reflect.AnnotatedType type,
                                          java.util.List<?> valueAsList,
                                          NodeContext context)
        Specified by:
        serialize in class TypeCodec<java.util.List<?>>