public class ValueType
extends java.lang.Object
类型分原子类型和复杂类型。 所有原子类型的编码相互之间都没有相同的类型特性,也就是不会有任何两个原子类型的编码位同为 1,也就意味着原子类型的编码永远只有一段,并且 只有一位编码位为 1,其余七位编码位为 0,同一段最多能获取8个不同的编码,从 0000 0001 开始,到 1000 0000 结束。 原子类型编码通过 VritualType 提供的静态方法 registerNewUniqueType 直接获取可用的唯一编码。 复杂类型编码,由多个原子类型编码组合而成,将相同 section 的编码按位或得到新的 section 类型编码,比如 section 1 的类型编码 0100 0000 和 1000 0000 按位或组合而成的新的 section 1 类型编码为 1100 0000。 Created by highsad on 2017/11/10.
限定符和类型 | 方法和说明 |
---|---|
ValueType |
and(int section, byte typeCode)
已过时。
|
ValueType |
and(ValueType otherType)
已过时。
|
boolean |
contains(ValueType otherType)
已过时。
|
boolean |
equals(ValueType otherType)
已过时。
|
java.util.Map<java.lang.Integer,java.lang.Byte> |
getCode()
已过时。
|
java.lang.String |
getName()
已过时。
|
static ValueType |
instance(java.lang.String name)
已过时。
|
boolean |
intersects(ValueType otherType)
已过时。
|
static ValueType |
registerNewUniqueType(java.lang.String name)
已过时。
|
java.lang.String |
toString()
已过时。
|
public static ValueType OBJECT
public java.lang.String getName()
public java.util.Map<java.lang.Integer,java.lang.Byte> getCode()
public ValueType and(int section, byte typeCode)
public boolean contains(ValueType otherType)
public boolean intersects(ValueType otherType)
public boolean equals(ValueType otherType)
public java.lang.String toString()
toString
在类中 java.lang.Object
public static ValueType instance(java.lang.String name)
public static ValueType registerNewUniqueType(java.lang.String name)