类 RingArray<T>

java.lang.Object
org.dromara.northstar.indicator.model.RingArray<T>

public class RingArray<T> extends Object
  • 构造器详细资料

    • RingArray

      public RingArray(int size)
  • 方法详细资料

    • get

      public T get()
    • get

      public T get(int index)
    • update

      public Optional<T> update(T obj, boolean unstable)
      更新值
      参数:
      obj - 返回旧值
      返回:
    • toArray

      public Object[] toArray()
    • size

      public int size()
      实际大小
      返回:
    • length

      public int length()
      最大长度
      返回: