Package com.esotericsoftware.kryo.util

Examples of com.esotericsoftware.kryo.util.MapReferenceResolver


  private StreamFactory streamFactory;

  /** Creates a new Kryo with a {@link DefaultClassResolver} and a {@link MapReferenceResolver}. */
  public Kryo () {
    this(new DefaultClassResolver(), new MapReferenceResolver(), new DefaultStreamFactory());
  }
View Full Code Here


   * typically adds overhead of one byte per object. Default is true.
   * @return The previous value. */
  public boolean setReferences (boolean references) {
    if (references == this.references) return references;
    this.references = references;
    if (references && referenceResolver == null) referenceResolver = new MapReferenceResolver();
    if (TRACE) trace("kryo", "References: " + references);
    return !references;
  }
View Full Code Here

  private StreamFactory streamFactory;

  /** Creates a new Kryo with a {@link DefaultClassResolver} and a {@link MapReferenceResolver}. */
  public Kryo () {
    this(new DefaultClassResolver(), new MapReferenceResolver(), new DefaultStreamFactory());
  }
View Full Code Here

   * typically adds overhead of one byte per object. Default is true.
   * @return The previous value. */
  public boolean setReferences (boolean references) {
    if (references == this.references) return references;
    this.references = references;
    if (references && referenceResolver == null) referenceResolver = new MapReferenceResolver();
    if (TRACE) trace("kryo", "References: " + references);
    return !references;
  }
View Full Code Here

  private StreamFactory streamFactory;

  /** Creates a new Kryo with a {@link DefaultClassResolver} and a {@link MapReferenceResolver}. */
  public Kryo () {
    this(new DefaultClassResolver(), new MapReferenceResolver(), new DefaultStreamFactory());
  }
View Full Code Here

   * typically adds overhead of one byte per object. Default is true.
   * @return The previous value. */
  public boolean setReferences (boolean references) {
    if (references == this.references) return references;
    this.references = references;
    if (references && referenceResolver == null) referenceResolver = new MapReferenceResolver();
    if (TRACE) trace("kryo", "References: " + references);
    return !references;
  }
View Full Code Here

  private StreamFactory streamFactory;

  /** Creates a new Kryo with a {@link DefaultClassResolver} and a {@link MapReferenceResolver}. */
  public Kryo () {
    this(new DefaultClassResolver(), new MapReferenceResolver(), new DefaultStreamFactory());
  }
View Full Code Here

   * typically adds overhead of one byte per object. Default is true.
   * @return The previous value. */
  public boolean setReferences (boolean references) {
    if (references == this.references) return references;
    this.references = references;
    if (references && referenceResolver == null) referenceResolver = new MapReferenceResolver();
    if (TRACE) trace("kryo", "References: " + references);
    return !references;
  }
View Full Code Here

  private IdentityMap originalToCopy;
  private Object needsCopyReference;

  /** Creates a new Kryo with a {@link DefaultClassResolver} and a {@link MapReferenceResolver}. */
  public Kryo () {
    this(new DefaultClassResolver(), new MapReferenceResolver());
  }
View Full Code Here

        }
        this.versionedHeader = out.toBytes();
    }

    public Kryo createKryo() {
        final Kryo kryo = new Kryo(new GremlinClassResolver(), new MapReferenceResolver(), new DefaultStreamFactory());
        kryo.addDefaultSerializer(Map.Entry.class, new EntrySerializer());
        kryo.setRegistrationRequired(true);
        serializationList.forEach(p -> {
            final Function<Kryo, Serializer> serializer = p.getValue1();
            if (serializer == null)
View Full Code Here

TOP

Related Classes of com.esotericsoftware.kryo.util.MapReferenceResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.