java.lang.Object
org.tquadrat.foundation.util.Stack.Entry
@ClassVersion(sourceVersion="$Id: Stack.java 1061 2023-09-25 16:32:43Z tquadrat $")
@API(status=STABLE,
since="0.0.5")
private final class Stack.Entry
extends Object
The stack entries.
- Note:
-
- This class cannot be changed to a
record
(instead of being aclass
) because arecord
as an inner class is implicitly static, and that collides with the type argument<T>
that is inherited from the surrounding class.
- This class cannot be changed to a
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: Stack.java 1061 2023-09-25 16:32:43Z tquadrat $
- Since:
- 0.0.5
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.util.Stack.Entry"
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
m_Head
The current head element. -
m_Tail
The remaining elements.
-
-
Constructor Details
-
Entry
Creates a newStack
object.- Parameters:
head
- The current head.tail
- The current tail; may benull
, indicating an empty tail.
-
-
Method Details
-
head
Returns the current head.- Returns:
- The head.
-
tail
Returns the current tail.- Returns:
- The tail.
-