Class NetKeyMapper.ToString<T>

Enclosing class:

public static class NetKeyMapper.ToString<T>
extends NetKeyMapper<T>
  • Nested Class Summary

    Nested classes/interfaces inherited from class

    NetKeyMapper.OfEnum<E extends java.lang.Enum<E>>, NetKeyMapper.ToString<T>
  • Field Summary

    Fields inherited from class

    clazz, length, LENGTH_DYNAMIC
  • Constructor Summary

    Constructor Description
    ToString​(java.lang.Class<T> clazz, java.util.function.Function<T,​java.lang.String> toString, java.util.function.Function<java.lang.String,​T> fromString)  
  • Method Summary

    Modifier and Type Method Description
    T read​(NetByteBuf buffer, IMsgReadCtx ctx)
    Reads the value for the key from the buffer, optionally using the parent keys.
    void write​(NetByteBuf buffer, IMsgWriteCtx ctx, T value)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait