com.github.libxjava.util
Class HashRingSet

java.lang.Object
  extended by com.github.libxjava.util.HashRingSet

public class HashRingSet
extends Object

Simple ring buffer set. It uses the standard Java hash mechanism to detect already inserted objects.

Version:
libxjava-cldc - 0.3
Author:
Marcel Patzlaff

Constructor Summary
HashRingSet(int capacity)
           
 
Method Summary
 boolean add(Object obj)
           
 boolean contains(Object obj)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HashRingSet

public HashRingSet(int capacity)
Method Detail

add

public boolean add(Object obj)

contains

public boolean contains(Object obj)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 Marcel Patzlaff. All Rights Reserved.