Class SetCodec


  • public final class SetCodec
    extends TypeCodec<java.util.Set<?>>
    • Field Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<?> deserialize​(java.lang.reflect.AnnotatedType type, java.lang.Object toDeserialize, NodeContext context)  
      java.lang.Object serialize​(java.lang.reflect.AnnotatedType type, java.util.Set<?> valueAsSet, 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 SetCodec INSTANCE
      • TYPE

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

      • deserialize

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

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