Public Member Functions | Protected Attributes

alma.acs.commandcenter.util.StringRingBuffer Class Reference

List of all members.

Public Member Functions

 StringRingBuffer (int size)
int add (char obj)
int size ()
char[] getAll ()
boolean equals (String other)
String toString ()

Protected Attributes

char[] data
int next = 0
boolean isFillingUp = true

Detailed Description

Author:
mschilli

Constructor & Destructor Documentation

alma.acs.commandcenter.util.StringRingBuffer.StringRingBuffer ( int  size  ) 

------------------- API ------------------------ ///

References alma.acs.commandcenter.util.StringRingBuffer.data.


Member Function Documentation

int alma.acs.commandcenter.util.StringRingBuffer.add ( char  obj  ) 

Returns the element that gets overwritten by this add-operation, -1 if none is overwritten since the RingBuffer is still filling up (that is, isFillingUp is true.

References alma.acs.commandcenter.util.StringRingBuffer.data, alma.acs.commandcenter.util.StringRingBuffer.isFillingUp, and alma.acs.commandcenter.util.StringRingBuffer.next.

boolean alma.acs.commandcenter.util.StringRingBuffer.equals ( String  other  ) 
char [] alma.acs.commandcenter.util.StringRingBuffer.getAll (  ) 
int alma.acs.commandcenter.util.StringRingBuffer.size (  ) 
String alma.acs.commandcenter.util.StringRingBuffer.toString (  ) 

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties