public class VariableType extends Object
| Constructor and Description |
|---|
VariableType(String name)
Create a new variable type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getName()
Return the name of this variable type.
|
int |
hashCode() |
protected static boolean |
isValidName(String name)
Indicates whether the name of this variable type is valid.
|
String |
toString() |
public VariableType(String name)
NullPointerException - If the specified name is null.IllegalArgumentException - If the specified name is an empty string.public String getName()
protected static boolean isValidName(String name)
name - The name of the variable.true if the name is valid; false otherwise.Copyright © 2021. All rights reserved.