E G H I L M R T

E

equals(Object) - Method in class labtest1.General
Tests if this general is the same as the given object.

G

General - Class in labtest1
This class represents a general.
getInstance(String) - Static method in class labtest1.General
Returns a general with the given name who is not retired if the number of created generals has not reached MAX_NUMBER.
getName() - Method in class labtest1.General
Returns the name of this general.

H

hashCode() - Method in class labtest1.General
Returns the hashcode of this general.

I

isRetired() - Method in class labtest1.General
Checks if this general is retired.

L

labtest1 - package labtest1
 

M

MAX_NUMBER - Static variable in class labtest1.General
The maximum number of generals that can be created.

R

retire() - Method in class labtest1.General
Sets this general to be retired.

T

toString() - Method in class labtest1.General
Returns a string representation of this general.

E G H I L M R T