Package it.unimi.dsi.lama4j
Class NamedElement
java.lang.Object
it.unimi.dsi.lama4j.AbstractElement
it.unimi.dsi.lama4j.NamedElement
- All Implemented Interfaces:
Element
public class NamedElement extends AbstractElement
An extension of
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
.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description NamedElement(Lattice lattice, String name)
Create a new abstract element, initialising its containing lattice and itsname
. -
Method Summary
-
Field Details
-
name
The name of this element.
-
-
Constructor Details
-
NamedElement
Create a new abstract element, initialising its containing lattice and itsname
.- Parameters:
lattice
- the containing lattice of this abstract element.name
- a name for this element.
-
-
Method Details