|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PTypeFamily
An abstract factory for creating PType
instances that have the same
serialization/storage backing format.
Method Summary | ||
---|---|---|
|
as(PType<T> ptype)
Returns the equivalent of the given ptype for this family, if it exists. |
|
PType<Boolean> |
booleans()
|
|
PType<ByteBuffer> |
bytes()
|
|
|
collections(PType<T> ptype)
|
|
|
derived(Class<T> clazz,
MapFn<S,T> inputFn,
MapFn<T,S> outputFn,
PType<S> base)
|
|
|
derivedImmutable(Class<T> clazz,
MapFn<S,T> inputFn,
MapFn<T,S> outputFn,
PType<S> base)
A derived type whose values are immutable. |
|
PType<Double> |
doubles()
|
|
PType<Float> |
floats()
|
|
PType<Integer> |
ints()
|
|
PType<Long> |
longs()
|
|
|
maps(PType<T> ptype)
|
|
PType<Void> |
nulls()
|
|
|
pairs(PType<V1> p1,
PType<V2> p2)
|
|
|
quads(PType<V1> p1,
PType<V2> p2,
PType<V3> p3,
PType<V4> p4)
|
|
|
records(Class<T> clazz)
|
|
PType<String> |
strings()
|
|
|
tableOf(PType<K> key,
PType<V> value)
|
|
|
triples(PType<V1> p1,
PType<V2> p2,
PType<V3> p3)
|
|
|
tuples(Class<T> clazz,
PType<?>... ptypes)
|
|
PType<TupleN> |
tuples(PType<?>... ptypes)
|
|
PType<Union> |
unionOf(PType<?>... ptypes)
|
Method Detail |
---|
PType<Void> nulls()
PType<String> strings()
PType<Long> longs()
PType<Integer> ints()
PType<Float> floats()
PType<Double> doubles()
PType<Boolean> booleans()
PType<ByteBuffer> bytes()
<T> PType<T> records(Class<T> clazz)
<T> PType<Collection<T>> collections(PType<T> ptype)
<T> PType<Map<String,T>> maps(PType<T> ptype)
<V1,V2> PType<Pair<V1,V2>> pairs(PType<V1> p1, PType<V2> p2)
<V1,V2,V3> PType<Tuple3<V1,V2,V3>> triples(PType<V1> p1, PType<V2> p2, PType<V3> p3)
<V1,V2,V3,V4> PType<Tuple4<V1,V2,V3,V4>> quads(PType<V1> p1, PType<V2> p2, PType<V3> p3, PType<V4> p4)
PType<TupleN> tuples(PType<?>... ptypes)
<T extends Tuple> PType<T> tuples(Class<T> clazz, PType<?>... ptypes)
<S,T> PType<T> derived(Class<T> clazz, MapFn<S,T> inputFn, MapFn<T,S> outputFn, PType<S> base)
<S,T> PType<T> derivedImmutable(Class<T> clazz, MapFn<S,T> inputFn, MapFn<T,S> outputFn, PType<S> base)
PType<Union> unionOf(PType<?>... ptypes)
<K,V> PTableType<K,V> tableOf(PType<K> key, PType<V> value)
<T> PType<T> as(PType<T> ptype)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |