protected static final class Tuples.Tuple4TypeFactory<T1,T2,T3,T4> extends Object implements TypeSystem.TypeFactory<Tuples.Tuple4<T1,T2,T3,T4>>, Tuples.TupleFactory<Tuples.Tuple4<T1,T2,T3,T4>>
Modifier | Constructor and Description |
---|---|
protected |
Tuple4TypeFactory(TypeSystem.TypeFactory<T1> type1,
TypeSystem.TypeFactory<T2> type2,
TypeSystem.TypeFactory<T3> type3,
TypeSystem.TypeFactory<T4> type4) |
Modifier and Type | Method and Description |
---|---|
String |
asReadableString(Object value)
Get a readable and potentially shorter string representation of the supplied value.
|
String |
asString(Object value)
Get the string representation of the supplied value.
|
Tuples.Tuple4<T1,T2,T3,T4> |
create(Object value)
Create the typed representation of the value given the supplied object representation.
|
Tuples.Tuple4<T1,T2,T3,T4> |
create(String value)
Create the typed representation of the value given the supplied string representation.
|
Comparator<Tuples.Tuple4<T1,T2,T3,T4>> |
getComparator()
Get a comparator that can be used to store the values of this type.
|
org.mapdb.Serializer<Tuples.Tuple4<T1,T2,T3,T4>> |
getSerializer(BufferManager bufferMgr) |
Class<Tuples.Tuple4<T1,T2,T3,T4>> |
getType()
Get the class representing the value type.
|
String |
getTypeName()
Get the name of the type created by this factory.
|
long |
length(Object value)
Get the length of the supplied value.
|
protected Tuple4TypeFactory(TypeSystem.TypeFactory<T1> type1, TypeSystem.TypeFactory<T2> type2, TypeSystem.TypeFactory<T3> type3, TypeSystem.TypeFactory<T4> type4)
public org.mapdb.Serializer<Tuples.Tuple4<T1,T2,T3,T4>> getSerializer(BufferManager bufferMgr)
getSerializer
in interface Tuples.TupleFactory<Tuples.Tuple4<T1,T2,T3,T4>>
public Class<Tuples.Tuple4<T1,T2,T3,T4>> getType()
TypeSystem.TypeFactory
getType
in interface TypeSystem.TypeFactory<Tuples.Tuple4<T1,T2,T3,T4>>
public Comparator<Tuples.Tuple4<T1,T2,T3,T4>> getComparator()
TypeSystem.TypeFactory
getComparator
in interface TypeSystem.TypeFactory<Tuples.Tuple4<T1,T2,T3,T4>>
public String getTypeName()
TypeSystem.TypeFactory
getTypeName
in interface TypeSystem.TypeFactory<Tuples.Tuple4<T1,T2,T3,T4>>
public Tuples.Tuple4<T1,T2,T3,T4> create(String value) throws ValueFormatException
TypeSystem.TypeFactory
create
in interface TypeSystem.TypeFactory<Tuples.Tuple4<T1,T2,T3,T4>>
value
- the string representation of the valuetype
ValueFormatException
- if the string cannot be converted to a typed valuepublic Tuples.Tuple4<T1,T2,T3,T4> create(Object value) throws ValueFormatException
TypeSystem.TypeFactory
create
in interface TypeSystem.TypeFactory<Tuples.Tuple4<T1,T2,T3,T4>>
value
- the object representation of the valuetype
ValueFormatException
- if the object cannot be converted to a typed valuepublic String asString(Object value)
TypeSystem.TypeFactory
asString
in interface TypeSystem.TypeFactory<Tuples.Tuple4<T1,T2,T3,T4>>
value
- the valuepublic long length(Object value)
TypeSystem.TypeFactory
length
in interface TypeSystem.TypeFactory<Tuples.Tuple4<T1,T2,T3,T4>>
value
- the valuepublic String asReadableString(Object value)
TypeSystem.TypeFactory
asReadableString
in interface TypeSystem.TypeFactory<Tuples.Tuple4<T1,T2,T3,T4>>
value
- the valueCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.