net.phys2d.raw
Class ArbiterList

java.lang.Object
  extended bynet.phys2d.raw.ArbiterList

public class ArbiterList
extends java.lang.Object

A typed list of Arbiter


Method Summary
 void clear()
          Remove all the elements from the list
 boolean contains(Arbiter arb)
          Check if an arbiter is contained within a list
 Arbiter get(int i)
          Get an arbiter at a specified index
 int indexOf(Arbiter arbiter)
          Return the index of a particular arbiter in the list
 int size()
          Get the size of the list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

size

public int size()
Get the size of the list

Returns:
The number of elements in the list

indexOf

public int indexOf(Arbiter arbiter)
Return the index of a particular arbiter in the list

Parameters:
arbiter - The arbiter to search for
Returns:
The index of -1 if not found

get

public Arbiter get(int i)
Get an arbiter at a specified index

Parameters:
i - The index of arbiter to retrieve
Returns:
The arbiter at the specified index

clear

public void clear()
Remove all the elements from the list


contains

public boolean contains(Arbiter arb)
Check if an arbiter is contained within a list

Parameters:
arb - The arbiter to check for
Returns:
True if the arbiter is in the list