Package com.esotericsoftware.kryo.factories

Examples of com.esotericsoftware.kryo.factories.PseudoSerializerFactory


  /** Instances of the specified class will use the specified serializer.
   * @see #setDefaultSerializer(Class) */
  public void addDefaultSerializer (Class type, Serializer serializer) {
    if (type == null) throw new IllegalArgumentException("type cannot be null.");
    if (serializer == null) throw new IllegalArgumentException("serializer cannot be null.");
    DefaultSerializerEntry entry = new DefaultSerializerEntry(type, new PseudoSerializerFactory(serializer));
    defaultSerializers.add(defaultSerializers.size() - lowPriorityDefaultSerializerCount, entry);
  }
View Full Code Here


  /** Instances of the specified class will use the specified serializer.
   * @see #setDefaultSerializer(Class) */
  public void addDefaultSerializer (Class type, Serializer serializer) {
    if (type == null) throw new IllegalArgumentException("type cannot be null.");
    if (serializer == null) throw new IllegalArgumentException("serializer cannot be null.");
    DefaultSerializerEntry entry = new DefaultSerializerEntry(type, new PseudoSerializerFactory(serializer));
    defaultSerializers.add(defaultSerializers.size() - lowPriorityDefaultSerializerCount, entry);
  }
View Full Code Here

  /** Instances of the specified class will use the specified serializer.
   * @see #setDefaultSerializer(Class) */
  public void addDefaultSerializer (Class type, Serializer serializer) {
    if (type == null) throw new IllegalArgumentException("type cannot be null.");
    if (serializer == null) throw new IllegalArgumentException("serializer cannot be null.");
    DefaultSerializerEntry entry = new DefaultSerializerEntry(type, new PseudoSerializerFactory(serializer));
    defaultSerializers.add(defaultSerializers.size() - lowPriorityDefaultSerializerCount, entry);
  }
View Full Code Here

  /** Instances of the specified class will use the specified serializer.
   * @see #setDefaultSerializer(Class) */
  public void addDefaultSerializer (Class type, Serializer serializer) {
    if (type == null) throw new IllegalArgumentException("type cannot be null.");
    if (serializer == null) throw new IllegalArgumentException("serializer cannot be null.");
    DefaultSerializerEntry entry = new DefaultSerializerEntry(type, new PseudoSerializerFactory(serializer));
    defaultSerializers.add(defaultSerializers.size() - lowPriorityDefaultSerializerCount, entry);
  }
View Full Code Here

  /** Instances of the specified class will use the specified serializer.
   * @see #setDefaultSerializer(Class) */
  public void addDefaultSerializer (Class type, Serializer serializer) {
    if (type == null) throw new IllegalArgumentException("type cannot be null.");
    if (serializer == null) throw new IllegalArgumentException("serializer cannot be null.");
    DefaultSerializerEntry entry = new DefaultSerializerEntry(type, new PseudoSerializerFactory(serializer));
    defaultSerializers.add(defaultSerializers.size() - lowPriorityDefaultSerializerCount, entry);
  }
View Full Code Here

TOP

Related Classes of com.esotericsoftware.kryo.factories.PseudoSerializerFactory

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.