Java 类com.google.gwt.user.client.rpc.SerializationStreamWriter 实例源码

项目:guava-mock    文件:Range_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter writer, Range<?> instance)
    throws SerializationException {

  if (instance.hasLowerBound()) {
    writer.writeBoolean(true);
    writer.writeBoolean(instance.lowerBoundType() == BoundType.CLOSED);
    writer.writeObject(instance.lowerEndpoint());
  } else {
    writer.writeBoolean(false);
  }

  if (instance.hasUpperBound()) {
    writer.writeBoolean(true);
    writer.writeBoolean(instance.upperBoundType() == BoundType.CLOSED);
    writer.writeObject(instance.upperEndpoint());
  } else {
    writer.writeBoolean(false);
  }
}
项目:googles-monorepo-demo    文件:Range_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter writer, Range<?> instance)
    throws SerializationException {

  if (instance.hasLowerBound()) {
    writer.writeBoolean(true);
    writer.writeBoolean(instance.lowerBoundType() == BoundType.CLOSED);
    writer.writeObject(instance.lowerEndpoint());
  } else {
    writer.writeBoolean(false);
  }

  if (instance.hasUpperBound()) {
    writer.writeBoolean(true);
    writer.writeBoolean(instance.upperBoundType() == BoundType.CLOSED);
    writer.writeObject(instance.upperEndpoint());
  } else {
    writer.writeBoolean(false);
  }
}
项目:guava-mock    文件:SingletonImmutableTable_CustomFieldSerializer.java   
public static void serialize(
    SerializationStreamWriter writer, SingletonImmutableTable<?, ?, ?> instance)
    throws SerializationException {
  writer.writeObject(instance.singleRowKey);
  writer.writeObject(instance.singleColumnKey);
  writer.writeObject(instance.singleValue);
}
项目:guava-mock    文件:ImmutableTable_CustomFieldSerializerBase.java   
public static void serialize(
    SerializationStreamWriter writer, ImmutableTable<Object, Object, Object> table)
    throws SerializationException {
  writer.writeInt(table.rowKeySet().size());
  for (Object rowKey : table.rowKeySet()) {
    writer.writeObject(rowKey);
    Map_CustomFieldSerializerBase.serialize(writer, table.row(rowKey));
  }
}
项目:guava-mock    文件:Multimap_CustomFieldSerializerBase.java   
public static void serialize(SerializationStreamWriter writer, Multimap<?, ?> instance)
    throws SerializationException {
  writer.writeInt(instance.asMap().size());
  for (Map.Entry<?, ? extends Collection<?>> entry : instance.asMap().entrySet()) {
    writer.writeObject(entry.getKey());
    writer.writeInt(entry.getValue().size());
    for (Object value : entry.getValue()) {
      writer.writeObject(value);
    }
  }
}
项目:guava-mock    文件:Multiset_CustomFieldSerializerBase.java   
static void serialize(SerializationStreamWriter writer, Multiset<?> instance)
    throws SerializationException {
  int entryCount = instance.entrySet().size();
  writer.writeInt(entryCount);
  for (Multiset.Entry<?> entry : instance.entrySet()) {
    writer.writeObject(entry.getElement());
    writer.writeInt(entry.getCount());
  }
}
项目:guava-mock    文件:LinkedListMultimap_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter out, LinkedListMultimap<?, ?> multimap)
    throws SerializationException {
  out.writeInt(multimap.size());
  for (Map.Entry<?, ?> entry : multimap.entries()) {
    out.writeObject(entry.getKey());
    out.writeObject(entry.getValue());
  }
}
项目:guava-mock    文件:Table_CustomFieldSerializerBase.java   
static void serialize(SerializationStreamWriter writer, StandardTable<?, ?, ?> table)
    throws SerializationException {
  /*
   * The backing map of a {Hash,Tree}BasedTable is a {Hash,Tree}Map of {Hash,Tree}Maps. Therefore,
   * the backing map is serializable (assuming that the row, column and values, along with any
   * comparators, are all serializable).
   */
  writer.writeObject(table.backingMap);
}
项目:guava-mock    文件:LinkedHashMultimap_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter stream, LinkedHashMultimap<?, ?> multimap)
    throws SerializationException {
  stream.writeInt(multimap.keySet().size());
  for (Object key : multimap.keySet()) {
    stream.writeObject(key);
  }
  stream.writeInt(multimap.size());
  for (Map.Entry<?, ?> entry : multimap.entries()) {
    stream.writeObject(entry.getKey());
    stream.writeObject(entry.getValue());
  }
}
项目:guava-mock    文件:RegularImmutableSortedSet_CustomFieldSerializer.java   
public static void serialize(
    SerializationStreamWriter writer, RegularImmutableSortedSet<?> instance)
    throws SerializationException {
  writer.writeObject(instance.comparator());

  Collection_CustomFieldSerializerBase.serialize(writer, instance);
}
项目:googles-monorepo-demo    文件:SingletonImmutableTable_CustomFieldSerializer.java   
public static void serialize(
    SerializationStreamWriter writer, SingletonImmutableTable<?, ?, ?> instance)
    throws SerializationException {
  writer.writeObject(instance.singleRowKey);
  writer.writeObject(instance.singleColumnKey);
  writer.writeObject(instance.singleValue);
}
项目:googles-monorepo-demo    文件:ImmutableTable_CustomFieldSerializerBase.java   
public static void serialize(
    SerializationStreamWriter writer, ImmutableTable<Object, Object, Object> table)
    throws SerializationException {
  writer.writeInt(table.rowKeySet().size());
  for (Object rowKey : table.rowKeySet()) {
    writer.writeObject(rowKey);
    Map_CustomFieldSerializerBase.serialize(writer, table.row(rowKey));
  }
}
项目:googles-monorepo-demo    文件:Multimap_CustomFieldSerializerBase.java   
public static void serialize(SerializationStreamWriter writer, Multimap<?, ?> instance)
    throws SerializationException {
  writer.writeInt(instance.asMap().size());
  for (Map.Entry<?, ? extends Collection<?>> entry : instance.asMap().entrySet()) {
    writer.writeObject(entry.getKey());
    writer.writeInt(entry.getValue().size());
    for (Object value : entry.getValue()) {
      writer.writeObject(value);
    }
  }
}
项目:googles-monorepo-demo    文件:Multiset_CustomFieldSerializerBase.java   
static void serialize(SerializationStreamWriter writer, Multiset<?> instance)
    throws SerializationException {
  int entryCount = instance.entrySet().size();
  writer.writeInt(entryCount);
  for (Multiset.Entry<?> entry : instance.entrySet()) {
    writer.writeObject(entry.getElement());
    writer.writeInt(entry.getCount());
  }
}
项目:googles-monorepo-demo    文件:LinkedListMultimap_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter out, LinkedListMultimap<?, ?> multimap)
    throws SerializationException {
  out.writeInt(multimap.size());
  for (Map.Entry<?, ?> entry : multimap.entries()) {
    out.writeObject(entry.getKey());
    out.writeObject(entry.getValue());
  }
}
项目:googles-monorepo-demo    文件:Table_CustomFieldSerializerBase.java   
static void serialize(SerializationStreamWriter writer, StandardTable<?, ?, ?> table)
    throws SerializationException {
  /*
   * The backing map of a {Hash,Tree}BasedTable is a {Hash,Tree}Map of {Hash,Tree}Maps. Therefore,
   * the backing map is serializable (assuming that the row, column and values, along with any
   * comparators, are all serializable).
   */
  writer.writeObject(table.backingMap);
}
项目:googles-monorepo-demo    文件:LinkedHashMultimap_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter stream, LinkedHashMultimap<?, ?> multimap)
    throws SerializationException {
  stream.writeInt(multimap.keySet().size());
  for (Object key : multimap.keySet()) {
    stream.writeObject(key);
  }
  stream.writeInt(multimap.size());
  for (Map.Entry<?, ?> entry : multimap.entries()) {
    stream.writeObject(entry.getKey());
    stream.writeObject(entry.getValue());
  }
}
项目:googles-monorepo-demo    文件:RegularImmutableSortedSet_CustomFieldSerializer.java   
public static void serialize(
    SerializationStreamWriter writer, RegularImmutableSortedSet<?> instance)
    throws SerializationException {
  writer.writeObject(instance.comparator());

  Collection_CustomFieldSerializerBase.serialize(writer, instance);
}
项目:guava-mock    文件:PairwiseEquivalence_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter writer, PairwiseEquivalence<?> instance)
    throws SerializationException {
  writer.writeObject(instance.elementEquivalence);
}
项目:guava-mock    文件:Present_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter writer, Present<?> instance)
    throws SerializationException {
  writer.writeObject(instance.get());
}
项目:guava-mock    文件:HashMultiset_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter writer, HashMultiset<?> instance)
    throws SerializationException {
  Multiset_CustomFieldSerializerBase.serialize(writer, instance);
}
项目:guava-mock    文件:RegularImmutableMap_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter writer, RegularImmutableMap<?, ?> instance)
    throws SerializationException {
  Map_CustomFieldSerializerBase.serialize(writer, instance);
}
项目:guava-mock    文件:ImmutableSetMultimap_CustomFieldSerializer.java   
public static void serialize(
    SerializationStreamWriter writer, ImmutableSetMultimap<?, ?> instance)
    throws SerializationException {
  writer.writeObject(instance.valueComparator());
  Multimap_CustomFieldSerializerBase.serialize(writer, instance);
}
项目:guava-mock    文件:SingletonImmutableBiMap_CustomFieldSerializer.java   
public static void serialize(
    SerializationStreamWriter writer, SingletonImmutableBiMap<?, ?> instance)
    throws SerializationException {
  writer.writeObject(instance.singleKey);
  writer.writeObject(instance.singleValue);
}
项目:guava-mock    文件:ArrayListMultimap_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter out, ArrayListMultimap<?, ?> multimap)
    throws SerializationException {
  Multimap_CustomFieldSerializerBase.serialize(out, multimap);
}
项目:guava-mock    文件:ImmutableSortedMap_CustomFieldSerializerBase.java   
static void serialize(SerializationStreamWriter writer, ImmutableSortedMap<?, ?> instance)
    throws SerializationException {
  writer.writeObject(instance.comparator());

  Map_CustomFieldSerializerBase.serialize(writer, instance);
}
项目:guava-mock    文件:RegularImmutableMultiset_CustomFieldSerializer.java   
public static void serialize(
    SerializationStreamWriter writer, RegularImmutableMultiset<?> instance)
    throws SerializationException {
  Collection_CustomFieldSerializerBase.serialize(writer, instance);
}
项目:guava-mock    文件:EmptyImmutableListMultimap_CustomFieldSerializer.java   
public static void serialize(
SerializationStreamWriter writer, EmptyImmutableListMultimap instance) {}
项目:guava-mock    文件:ImmutableListMultimap_CustomFieldSerializer.java   
public static void serialize(
    SerializationStreamWriter writer, ImmutableListMultimap<?, ?> instance)
    throws SerializationException {
  Multimap_CustomFieldSerializerBase.serialize(writer, instance);
}
项目:guava-mock    文件:ImmutableEntry_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter writer, ImmutableEntry<?, ?> instance)
    throws SerializationException {
  writer.writeObject(instance.getKey());
  writer.writeObject(instance.getValue());
}
项目:guava-mock    文件:TreeMultimap_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter out, TreeMultimap<?, ?> multimap)
    throws SerializationException {
  out.writeObject(multimap.keyComparator());
  out.writeObject(multimap.valueComparator());
  Multimap_CustomFieldSerializerBase.serialize(out, multimap);
}
项目:guava-mock    文件:CompoundOrdering_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter writer, CompoundOrdering<?> instance)
    throws SerializationException {
  writer.writeObject(instance.comparators);
}
项目:guava-mock    文件:ImmutableEnumMap_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter writer, ImmutableEnumMap<?, ?> instance)
    throws SerializationException {
  Map_CustomFieldSerializerBase.serialize(writer, instance);
}
项目:guava-mock    文件:ByFunctionOrdering_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter writer, ByFunctionOrdering<?, ?> instance)
    throws SerializationException {
  writer.writeObject(instance.function);
  writer.writeObject(instance.ordering);
}
项目:guava-mock    文件:DenseImmutableTable_CustomFieldSerializer.java   
public static void serialize(
    SerializationStreamWriter writer, DenseImmutableTable<Object, Object, Object> table)
    throws SerializationException {
  ImmutableTable_CustomFieldSerializerBase.serialize(writer, table);
}
项目:guava-mock    文件:ComparatorOrdering_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter writer, ComparatorOrdering<?> instance)
    throws SerializationException {
  writer.writeObject(instance.comparator);
}
项目:guava-mock    文件:RegularImmutableSet_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter writer, RegularImmutableSet<?> instance)
    throws SerializationException {
  Collection_CustomFieldSerializerBase.serialize(writer, instance);
}
项目:guava-mock    文件:TreeBasedTable_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter writer, TreeBasedTable<?, ?, ?> table)
    throws SerializationException {
  writer.writeObject(table.rowComparator());
  writer.writeObject(table.columnComparator());
  Table_CustomFieldSerializerBase.serialize(writer, table);
}
项目:guava-mock    文件:ImmutableSortedMap_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter writer, ImmutableSortedMap<?, ?> instance)
    throws SerializationException {
  ImmutableSortedMap_CustomFieldSerializerBase.serialize(writer, instance);
}
项目:googles-monorepo-demo    文件:RegularImmutableList_CustomFieldSerializer.java   
public static void serialize(SerializationStreamWriter writer, RegularImmutableList<?> instance)
    throws SerializationException {
  Collection_CustomFieldSerializerBase.serialize(writer, instance);
}