public class LiteralType<T> extends Type
| Constructor and Description |
|---|
LiteralType(ConcreteType type,
T value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isSubtypeOf(Type that) |
Type |
join(Type that) |
Type |
meet(Type that) |
Type |
restrict(Type that) |
String |
toString() |
ConcreteType |
type() |
T |
value() |
compareTo, isConsistentSubtypeOf, isConsistentWith, unionWithpublic LiteralType(ConcreteType type, T value)
public ConcreteType type()
public T value()
public boolean isSubtypeOf(Type that)
isSubtypeOf in class TypeCopyright © 2016–2017. All rights reserved.