public class PPrimitive<T> extends Object implements PDescriptor<T>
| Modifier and Type | Field and Description |
|---|---|
static PPrimitive<net.morimekta.util.Binary> |
BINARY |
static PPrimitive<Boolean> |
BOOL |
static PPrimitive<Byte> |
BYTE |
static PPrimitive<Double> |
DOUBLE |
static PPrimitive<Short> |
I16 |
static PPrimitive<Integer> |
I32 |
static PPrimitive<Long> |
I64 |
static PPrimitive<String> |
STRING |
static PPrimitive<Void> |
VOID |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static PPrimitive<?> |
findByName(String name) |
T |
getDefaultValue() |
String |
getName()
The name of the type is the Identifier string from the IDL.
|
String |
getPackageName()
The package name is derived form the .thrift file name that is parsed or
if read from serialized format is explicit.
|
String |
getQualifiedName(String packageName)
This will return the qualifying name of the type given package context.
|
PType |
getType() |
int |
hashCode() |
PPrimitiveProvider<T> |
provider() |
String |
toString() |
public static final PPrimitive<Void> VOID
public static final PPrimitive<Boolean> BOOL
public static final PPrimitive<Byte> BYTE
public static final PPrimitive<Short> I16
public static final PPrimitive<Integer> I32
public static final PPrimitive<Long> I64
public static final PPrimitive<Double> DOUBLE
public static final PPrimitive<String> STRING
public static final PPrimitive<net.morimekta.util.Binary> BINARY
public PPrimitiveProvider<T> provider()
public String getPackageName()
PDescriptorgetPackageName in interface PDescriptor<T>public String getName()
PDescriptorgetName in interface PDescriptor<T>public String getQualifiedName(String packageName)
PDescriptorgetQualifiedName in interface PDescriptor<T>public PType getType()
getType in interface PDescriptor<T>public T getDefaultValue()
public static PPrimitive<?> findByName(String name)
Copyright © 2016. All rights reserved.