程序包 proguard.util

类 CircularIntBuffer

java.lang.Object
proguard.util.CircularIntBuffer

public class CircularIntBuffer extends Object
A circular buffer over the primitive integer type.
  • 构造器概要

    构造器
    构造器
    说明
    CircularIntBuffer(int maxSize)
    Create a new CircularIntBuffer that can grow to a given maxSize.
  • 方法概要

    修饰符和类型
    方法
    说明
    int
    Get the head value.
    int
    peek(int offset)
    Get the element at an offset of the head.
    void
    push(int value)
    Push a value into the buffer overriding the oldest element when exceeding max size.
    int
    Get current size of the buffer.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • CircularIntBuffer

      public CircularIntBuffer(int maxSize)
      Create a new CircularIntBuffer that can grow to a given maxSize.
  • 方法详细资料

    • push

      public void push(int value)
      Push a value into the buffer overriding the oldest element when exceeding max size.
    • peek

      public int peek(int offset)
      Get the element at an offset of the head.
    • peek

      public int peek()
      Get the head value.
    • size

      public int size()
      Get current size of the buffer.