Class EnhancedRandomSerializer

java.lang.Object
com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.random.EnhancedRandom>
com.github.tommyettinger.kryo.juniper.EnhancedRandomSerializer

public class EnhancedRandomSerializer extends com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.random.EnhancedRandom>
Kryo Serializer for juniper EnhancedRandoms. This is less space-efficient than storing a known class that extends EnhancedRandom.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.github.tommyettinger.random.EnhancedRandom
    copy(com.esotericsoftware.kryo.Kryo kryo, com.github.tommyettinger.random.EnhancedRandom original)
     
    com.github.tommyettinger.random.EnhancedRandom
    read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends com.github.tommyettinger.random.EnhancedRandom> dataClass)
     
    void
    write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, com.github.tommyettinger.random.EnhancedRandom 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.random.EnhancedRandom data)
      Specified by:
      write in class com.esotericsoftware.kryo.Serializer<com.github.tommyettinger.random.EnhancedRandom>
    • read

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

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