List of usage examples for com.google.gwt.user.client.rpc.core.java.util Collection_CustomFieldSerializerBase deserialize
public static void deserialize(SerializationStreamReader streamReader, Collection instance) throws SerializationException
From source file:cc.alcina.framework.common.client.logic.domaintransform.lookup.LightSet_CustomFieldSerializer.java
License:Apache License
public static void deserialize(SerializationStreamReader streamReader, LightSet instance) throws SerializationException { Collection_CustomFieldSerializerBase.deserialize(streamReader, instance); }
From source file:cc.alcina.framework.common.client.logic.domaintransform.lookup.LiSet_CustomFieldSerializer.java
License:Apache License
public static void deserialize(SerializationStreamReader streamReader, LiSet instance) throws SerializationException { Collection_CustomFieldSerializerBase.deserialize(streamReader, instance); }
From source file:com.ait.ext4j.client.core.FastSet_CustomFieldSerializer.java
License:Apache License
public static void deserialize(SerializationStreamReader streamReader, FastSet instance) throws SerializationException { Collection_CustomFieldSerializerBase.deserialize(streamReader, instance); }
From source file:com.google.common.collect.ExplicitOrderedImmutableSortedSet_CustomFieldSerializer.java
License:Apache License
public static ExplicitOrderedImmutableSortedSet<Object> instantiate(SerializationStreamReader reader) throws SerializationException { List<Object> elements = new ArrayList<Object>(); Collection_CustomFieldSerializerBase.deserialize(reader, elements); /*//from w ww . j a v a 2s.com * For this custom field serializer to be invoked, the set must have been * ExplicitOrderedImmutableSortedSet before it's serialized. */ return (ExplicitOrderedImmutableSortedSet<Object>) ImmutableSortedSet.withExplicitOrder(elements); }
From source file:com.google.common.collect.ImmutableAsList_CustomFieldSerializer.java
License:Apache License
public static ImmutableAsList<Object> instantiate(SerializationStreamReader reader) throws SerializationException { List<Object> elements = new ArrayList<Object>(); Collection_CustomFieldSerializerBase.deserialize(reader, elements); return new ImmutableAsList<Object>(elements); }
From source file:com.google.common.collect.ImmutableEnumSet_CustomFieldSerializer.java
License:Apache License
public static <E extends Enum<E>> ImmutableEnumSet<?> instantiate(SerializationStreamReader reader) throws SerializationException { List<E> deserialized = Lists.newArrayList(); Collection_CustomFieldSerializerBase.deserialize(reader, deserialized); /*/*w w w . j av a2 s . c o m*/ * It is safe to cast to ImmutableEnumSet because in order for it to be * serialized as an ImmutableEnumSet, it must be non-empty to start * with. */ return (ImmutableEnumSet<?>) Sets.immutableEnumSet(deserialized); }
From source file:com.google.common.collect.JdkBackedImmutableSet_CustomFieldSerializer.java
License:Apache License
public static ImmutableSet<Object> instantiate(SerializationStreamReader reader) throws SerializationException { List<Object> elements = Lists.newArrayList(); Collection_CustomFieldSerializerBase.deserialize(reader, elements); return ImmutableSet.copyOf(elements); }
From source file:com.google.common.collect.RegularImmutableList_CustomFieldSerializer.java
License:Apache License
public static RegularImmutableList<Object> instantiate(SerializationStreamReader reader) throws SerializationException { List<Object> elements = new ArrayList<Object>(); Collection_CustomFieldSerializerBase.deserialize(reader, elements); /*/*from w w w . j a v a2s.com*/ * For this custom field serializer to be invoked, the list must have been * RegularImmutableList before it's serialized. Since RegularImmutableList * always have one or more elements, ImmutableList.copyOf always return * a RegularImmutableList back. */ return (RegularImmutableList<Object>) ImmutableList.copyOf(elements); }
From source file:com.google.common.collect.RegularImmutableMultiset_CustomFieldSerializer.java
License:Apache License
public static RegularImmutableMultiset<Object> instantiate(SerializationStreamReader reader) throws SerializationException { List<Object> elements = Lists.newArrayList(); Collection_CustomFieldSerializerBase.deserialize(reader, elements); /*/*from w ww .ja v a 2 s. c o m*/ * For this custom field serializer to be invoked, the set must have been * RegularImmutableMultiset before it's serialized. Since * RegularImmutableMultiset always have one or more elements, * ImmutableMultiset.copyOf always return a RegularImmutableMultiset back. */ return (RegularImmutableMultiset<Object>) ImmutableMultiset.copyOf(elements); }
From source file:com.google.common.collect.RegularImmutableSet_CustomFieldSerializer.java
License:Apache License
public static RegularImmutableSet<Object> instantiate(SerializationStreamReader reader) throws SerializationException { List<Object> elements = Lists.newArrayList(); Collection_CustomFieldSerializerBase.deserialize(reader, elements); /*/* w w w.ja v a2 s .c o m*/ * For this custom field serializer to be invoked, the set must have been * RegularImmutableSet before it's serialized. Since RegularImmutableSet * always have two or more elements, ImmutableSet.copyOf always return * a RegularImmutableSet back. */ return (RegularImmutableSet<Object>) ImmutableSet.copyOf(elements); }