Class WeightedTableSerializer

java.lang.Object
com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.cringe.WeightedTable>
com.github.tommyettinger.kryo.cringe.WeightedTableSerializer

public class WeightedTableSerializer extends com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.cringe.WeightedTable>
Needs the concrete GdxRandom subclass that a WeightedTable can use registered. It is recommended to use RandomAce320 as the only GdxRandom for this type, because others might not deserialize correctly.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.github.tommyettinger.cringe.WeightedTable
    copy(com.esotericsoftware.kryo.Kryo kryo, com.github.tommyettinger.cringe.WeightedTable original)
     
    com.github.tommyettinger.cringe.WeightedTable
    read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends com.github.tommyettinger.cringe.WeightedTable> dataClass)
     
    void
    write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.github.tommyettinger.cringe.WeightedTable data)
     

    Methods inherited from class com.esotericsoftware.kryo.Serializer

    getAcceptsNull, isImmutable, setAcceptsNull, setImmutable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.github.tommyettinger.cringe.WeightedTable data)
      Specified by:
      write in class com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.cringe.WeightedTable>
    • read

      public com.github.tommyettinger.cringe.WeightedTable read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends com.github.tommyettinger.cringe.WeightedTable> dataClass)
      Specified by:
      read in class com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.cringe.WeightedTable>
    • copy

      public com.github.tommyettinger.cringe.WeightedTable copy(com.esotericsoftware.kryo.Kryo kryo, com.github.tommyettinger.cringe.WeightedTable original)
      Overrides:
      copy in class com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.cringe.WeightedTable>