类 StandardStack<T>
- java.lang.Object
-
- org.hibernate.internal.util.collections.StandardStack<T>
-
-
构造器概要
构造器 构造器 说明 StandardStack()StandardStack(T initial)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclear()Remove all elements from the stackintdepth()How many elements are currently on the stack?<X> XfindCurrentFirst(Function<T,X> function)Find an element on the stack and return a value.TgetCurrent()The element currently at the top of the stackTgetPrevious()The element previously at the top of the stack before the current onebooleanisEmpty()Are there no elements currently in the stack?Tpop()Pop (remove and return) the current element off the stackvoidpush(T newCurrent)Push the new element on the top of the stackvoidvisitCurrentFirst(Consumer<T> action)Visit all elements in the stack, starting with the current and working back
-
-
-
构造器详细资料
-
StandardStack
public StandardStack()
-
StandardStack
public StandardStack(T initial)
-
-
方法详细资料
-
getCurrent
public T getCurrent()
从接口复制的说明:StackThe element currently at the top of the stack- 指定者:
getCurrent在接口中Stack<T>
-
getPrevious
public T getPrevious()
从接口复制的说明:StackThe element previously at the top of the stack before the current one- 指定者:
getPrevious在接口中Stack<T>
-
depth
public int depth()
从接口复制的说明:StackHow many elements are currently on the stack?
-
isEmpty
public boolean isEmpty()
从接口复制的说明:StackAre there no elements currently in the stack?
-
clear
public void clear()
从接口复制的说明:StackRemove all elements from the stack
-
visitCurrentFirst
public void visitCurrentFirst(Consumer<T> action)
从接口复制的说明:StackVisit all elements in the stack, starting with the current and working back- 指定者:
visitCurrentFirst在接口中Stack<T>
-
-