Class MapCodec


  • public final class MapCodec
    extends TypeCodec<java.util.Map<?,​?>>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static MapCodec INSTANCE  
      static io.leangen.geantyref.TypeToken<java.util.Map<?,​?>> TYPE  
    • Method Summary

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

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

      • deserialize

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

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