edu.wpi.first.wpilibj.networktables2.util
Class HalfQueue

java.lang.Object
  extended by edu.wpi.first.wpilibj.networktables2.util.HalfQueue

public class HalfQueue
extends Object

A queue designed to have things appended to it and then to be read directly from the backing array

Author:
mwills

Field Summary
 Object[] array
           
 
Constructor Summary
HalfQueue(int maxSize)
           
 
Method Summary
 void clear()
           
 boolean isFull()
           
 void queue(Object element)
          Push an element onto the stack
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

array

public final Object[] array
Constructor Detail

HalfQueue

public HalfQueue(int maxSize)
Method Detail

queue

public void queue(Object element)
Push an element onto the stack

Parameters:
element -

isFull

public boolean isFull()

size

public int size()

clear

public void clear()


Copyright © 2013. All rights reserved.