Package org.apache.calcite.util
Class PartiallyOrderedSet.Node<E>
- java.lang.Object
-
- org.apache.calcite.util.PartiallyOrderedSet.Node<E>
-
- Type Parameters:
E
- Element type
- Direct Known Subclasses:
PartiallyOrderedSet.TopBottomNode
- Enclosing class:
- PartiallyOrderedSet<E>
private static class PartiallyOrderedSet.Node<E> extends java.lang.Object
Holds a value, its parent nodes, and child nodes.We deliberately do not override
Object.hashCode()
orObject.equals(Object)
. A canonizing map ensures that within a given PartiallyOrderedSet, two nodes are identical if and only if they contain the same value.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<PartiallyOrderedSet.Node<E>>
childList
(package private) E
e
(package private) java.util.List<PartiallyOrderedSet.Node<E>>
parentList
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
-
-
Field Detail
-
parentList
final java.util.List<PartiallyOrderedSet.Node<E>> parentList
-
childList
final java.util.List<PartiallyOrderedSet.Node<E>> childList
-
e
final E e
-
-
Constructor Detail
-
Node
Node(E e)
-
-