Class JunctionSupport

java.lang.Object
com.github.tommyettinger.kryo.jdkgdxds.JunctionSupport

public class JunctionSupport extends Object
Not actually a Serializer, this just has code to register the needed classes for Junction to be serializable.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    registerJunction(com.esotericsoftware.kryo.Kryo kryo)
    Given a Kryo instance to register classes on, this registers (in order): ObjectList Junction Junction.Any Junction.All Junction.One Junction.Not Junction.Leaf This means if you call this on a server, it also must be called at the same point in registration order as you call it on the client-side.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • registerJunction

      public static void registerJunction(com.esotericsoftware.kryo.Kryo kryo)
      Given a Kryo instance to register classes on, this registers (in order):
      1. ObjectList
      2. Junction
      3. Junction.Any
      4. Junction.All
      5. Junction.One
      6. Junction.Not
      7. Junction.Leaf
      This means if you call this on a server, it also must be called at the same point in registration order as you call it on the client-side.
      Parameters:
      kryo - a non-null Kryo instance