Class Serializer

  • public class Serializer
    extends java.lang.Object
    The injection point for the Quad Serializable process. This class is public to allow system initialization to inject handler functions for Quad. See also Node and Triple.
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.function.Function<Quad,​java.lang.Object> getQuadSerializer()
      Return the current triple serializer replacement function.
      static void setQuadSerializer​(java.util.function.Function<Quad,​java.lang.Object> writeReplaceFunction)
      Set the quad serializer replacement function.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Serializer

        public Serializer()
    • Method Detail

      • setQuadSerializer

        public static void setQuadSerializer​(java.util.function.Function<Quad,​java.lang.Object> writeReplaceFunction)
        Set the quad serializer replacement function. This is a function called by Triple.writeReplace during the Serializable process. The return is an object used in place of Quad for the serialization.
         ANY-ACCESS-MODIFIER Object writeReplace() throws ObjectStreamException;

        The returned object must provide

         ANY-ACCESS-MODIFIER Object readResolve() throws ObjectStreamException;

        where "Object" is a Quad.

        See Also:
      • getQuadSerializer

        public static java.util.function.Function<Quad,​java.lang.Object> getQuadSerializer()
        Return the current triple serializer replacement function.