public class NameAndType
extends java.lang.Object
| Constructor and Description |
|---|
NameAndType(java.lang.String name,
Type type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Check if an object is equal to this name and type.
|
int |
hashCode()
Returns a hash of the name and type.
|
java.lang.String |
name()
Returns the name.
|
java.lang.String |
toString()
Returns a string representation of the name and type.
|
Type |
type()
Returns the type.
|
public NameAndType(java.lang.String name,
Type type)
public java.lang.String name()
public Type type()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The object to compare against.public int hashCode()
hashCode in class java.lang.Object