equals(Object)
should be used.
A primitive is considered equal to another primitive if it specifies the same primitive enumeration value, and contains an equal set of annotation instances.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | PrimitiveType.Primitive
Specifies the underlying Java primitive type for a |
| Modifier and Type | Field and Description |
|---|---|
| public static final PrimitiveType | |
| public static final PrimitiveType | |
| public static final PrimitiveType | |
| public static final PrimitiveType | |
| public static final PrimitiveType | |
| public static final PrimitiveType | |
| public static final PrimitiveType | |
| private final PrimitiveType. | |
| private static final Map | |
| public static final PrimitiveType |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public PrimitiveType | asPrimitiveType()
Overrides org. org. and returns it if the kind is
Kind#PRIMITIVE.
|
| pack-priv Type | |
| pack-priv static PrimitiveType | |
| pack-priv static PrimitiveType | |
| public boolean | equals(Object
the type to compare to o)Overrides org. Type with another type.
|
| pack-priv static PrimitiveType | |
| public int | |
| pack-priv boolean | |
| pack-priv int | |
| public Type. | |
| public PrimitiveType. | |
| pack-priv char |
| BOOLEAN | back to summary |
|---|---|
| public static final PrimitiveType BOOLEAN | |
| BYTE | back to summary |
|---|---|
| public static final PrimitiveType BYTE | |
| CHAR | back to summary |
|---|---|
| public static final PrimitiveType CHAR | |
| DOUBLE | back to summary |
|---|---|
| public static final PrimitiveType DOUBLE | |
| FLOAT | back to summary |
|---|---|
| public static final PrimitiveType FLOAT | |
| INT | back to summary |
|---|---|
| public static final PrimitiveType INT | |
| LONG | back to summary |
|---|---|
| public static final PrimitiveType LONG | |
| primitive | back to summary |
|---|---|
| private final PrimitiveType. | |
| reverseMap | back to summary |
|---|---|
| private static final Map<String, PrimitiveType> reverseMap | |
| SHORT | back to summary |
|---|---|
| public static final PrimitiveType SHORT | |
| PrimitiveType | back to summary |
|---|---|
| private PrimitiveType(PrimitiveType. | |
| PrimitiveType | back to summary |
|---|---|
| private PrimitiveType(PrimitiveType. | |
| asPrimitiveType | back to summary |
|---|---|
| public PrimitiveType asPrimitiveType() Overrides org. Doc from org. Casts this type to a
| |
| copyType | back to summary |
|---|---|
| pack-priv Type copyType(AnnotationInstance[] newAnnotations) Implements abstract org.
| |
| decode | back to summary |
|---|---|
| pack-priv static PrimitiveType decode(String name) | |
| decode | back to summary |
|---|---|
| pack-priv static PrimitiveType decode(char c) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides org. Doc from org. Compares this | |
| fromOridinal | back to summary |
|---|---|
| pack-priv static PrimitiveType fromOridinal(int ordinal) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from org. Computes a hash code representing this type.
| |
| internEquals | back to summary |
|---|---|
| pack-priv boolean internEquals(Object o) Overrides org.
| |
| internHashCode | back to summary |
|---|---|
| pack-priv int internHashCode() Overrides org.
| |
| kind | back to summary |
|---|---|
| public Type. Implements abstract org. Doc from org. Returns the kind of Type this is. | |
| primitive | back to summary |
|---|---|
| public PrimitiveType. The type of primitive this primitive type represents
| |
| toCode | back to summary |
|---|---|
| pack-priv char toCode() | |
PrimitiveType
| Modifier and Type | Field and Description |
|---|---|
| public static final PrimitiveType. | BOOLEAN
Indicates a primitive boolean type |
| public static final PrimitiveType. | BYTE
Indicates a primitive byte type |
| public static final PrimitiveType. | CHAR
Indicates a primitive character type |
| public static final PrimitiveType. | DOUBLE
Indicates a primitive double type |
| public static final PrimitiveType. | FLOAT
Indicates a primitive float type |
| public static final PrimitiveType. | INT
Indicates a primitive integer type |
| public static final PrimitiveType. | LONG
Indicates a primitive long type |
| public static final PrimitiveType. | SHORT
Indicates a primitive short type |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static PrimitiveType. | |
| public static PrimitiveType. |
| BOOLEAN | back to summary |
|---|---|
| public static final PrimitiveType. Indicates a primitive boolean type | |
| BYTE | back to summary |
|---|---|
| public static final PrimitiveType. Indicates a primitive byte type | |
| CHAR | back to summary |
|---|---|
| public static final PrimitiveType. Indicates a primitive character type | |
| DOUBLE | back to summary |
|---|---|
| public static final PrimitiveType. Indicates a primitive double type | |
| FLOAT | back to summary |
|---|---|
| public static final PrimitiveType. Indicates a primitive float type | |
| INT | back to summary |
|---|---|
| public static final PrimitiveType. Indicates a primitive integer type | |
| LONG | back to summary |
|---|---|
| public static final PrimitiveType. Indicates a primitive long type | |
| SHORT | back to summary |
|---|---|
| public static final PrimitiveType. Indicates a primitive short type | |
| Primitive | back to summary |
|---|---|
| private Primitive() | |
| valueOf | back to summary |
|---|---|
| public static PrimitiveType. | |
| values | back to summary |
|---|---|
| public static PrimitiveType. | |