Interface TFloatStack

All Known Implementing Classes:
TFloatArrayStack

public interface TFloatStack
A stack of float primitives.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clears the stack.
    float
    Returns the value that is used to represent null.
    float
    Returns the value at the top of the stack.
    float
    pop()
    Removes and returns the value at the top of the stack.
    void
    push(float val)
    Pushes the value onto the top of the stack.
    int
    Returns the current depth of the stack.
    float[]
    Copies the contents of the stack into a native array.
    void
    toArray(float[] dest)
    Copies a slice of the list into a native array.
  • Method Details

    • getNoEntryValue

      float getNoEntryValue()
      Returns the value that is used to represent null. The default value is generally zero, but can be configured during construction of the collection.
      Returns:
      the value that represents null
    • push

      void push(float val)
      Pushes the value onto the top of the stack.
      Parameters:
      val - an float value
    • pop

      float pop()
      Removes and returns the value at the top of the stack.
      Returns:
      an float value
    • peek

      float peek()
      Returns the value at the top of the stack.
      Returns:
      an float value
    • size

      int size()
      Returns the current depth of the stack.
    • clear

      void clear()
      Clears the stack.
    • toArray

      float[] toArray()
      Copies the contents of the stack into a native array. Note that this will NOT pop them out of the stack.
      Returns:
      an float[] value
    • toArray

      void toArray(float[] dest)
      Copies a slice of the list into a native array. Note that this will NOT pop them out of the stack.
      Parameters:
      dest - the array to copy into.