public class KeycloakMarshallUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
KeycloakMarshallUtil.ConcurrentHashMapBuilder<K,V> |
static class |
KeycloakMarshallUtil.HashSetBuilder<E> |
| Modifier and Type | Field and Description |
|---|---|
static org.infinispan.commons.marshall.Externalizer<String> |
STRING_EXT |
static org.infinispan.commons.marshall.Externalizer<UUID> |
UUID_EXT |
| Constructor and Description |
|---|
KeycloakMarshallUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
marshall(Integer obj,
ObjectOutput output)
Marshalls the given object with support of
null values. |
static <E,T extends Collection<E>> |
readCollection(ObjectInput input,
org.infinispan.commons.marshall.Externalizer<E> valueExternalizer,
org.infinispan.commons.marshall.MarshallUtil.CollectionBuilder<E,T> colBuilder) |
static <K,V,TYPED_MAP extends Map<K,V>> |
readMap(ObjectInput input,
org.infinispan.commons.marshall.Externalizer<K> keyExternalizer,
org.infinispan.commons.marshall.Externalizer<V> valueExternalizer,
org.infinispan.commons.marshall.MarshallUtil.MapBuilder<K,V,TYPED_MAP> mapBuilder) |
static Integer |
unmarshallInteger(ObjectInput input)
Unmarshals the given object into
Integer instance. |
static <E> void |
writeCollection(Collection<E> col,
org.infinispan.commons.marshall.Externalizer<E> valueExternalizer,
ObjectOutput output) |
static <K,V> void |
writeMap(Map<K,V> map,
org.infinispan.commons.marshall.Externalizer<K> keyExternalizer,
org.infinispan.commons.marshall.Externalizer<V> valueExternalizer,
ObjectOutput output) |
public static final org.infinispan.commons.marshall.Externalizer<String> STRING_EXT
public static final org.infinispan.commons.marshall.Externalizer<UUID> UUID_EXT
public static <K,V> void writeMap(Map<K,V> map, org.infinispan.commons.marshall.Externalizer<K> keyExternalizer, org.infinispan.commons.marshall.Externalizer<V> valueExternalizer, ObjectOutput output) throws IOException
IOExceptionpublic static <K,V,TYPED_MAP extends Map<K,V>> TYPED_MAP readMap(ObjectInput input, org.infinispan.commons.marshall.Externalizer<K> keyExternalizer, org.infinispan.commons.marshall.Externalizer<V> valueExternalizer, org.infinispan.commons.marshall.MarshallUtil.MapBuilder<K,V,TYPED_MAP> mapBuilder) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic static <E> void writeCollection(Collection<E> col, org.infinispan.commons.marshall.Externalizer<E> valueExternalizer, ObjectOutput output) throws IOException
IOExceptionpublic static <E,T extends Collection<E>> T readCollection(ObjectInput input, org.infinispan.commons.marshall.Externalizer<E> valueExternalizer, org.infinispan.commons.marshall.MarshallUtil.CollectionBuilder<E,T> colBuilder) throws ClassNotFoundException, IOException
ClassNotFoundExceptionIOExceptionpublic static void marshall(Integer obj, ObjectOutput output) throws IOException
null values.obj - Object to marshall (can be null)output - Output streamIOExceptionpublic static Integer unmarshallInteger(ObjectInput input) throws IOException
Integer instance.input - Input streamnull)IOExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.