public class NamedElement extends AbstractElement
AbstractElement the associates a name with the element. Instances of this
class are used by many lattices to build their elements.
Equality is defined by equality of the
containing lattice and of the name.
| Modifier and Type | Field and Description |
|---|---|
String |
name
The name of this element.
|
lattice| Constructor and Description |
|---|
NamedElement(Lattice lattice,
String name)
Create a new abstract element, initialising its
containing lattice and its
name. |
public final String name
public NamedElement(Lattice lattice, String name)
name.lattice - the containing lattice of this abstract element.name - a name for this element.