netP5
Class NetAddressList

java.lang.Object
  extended by netP5.NetAddressList

public class NetAddressList
extends Object

NetAddressList is an arraylist of netaddresses.

Author:
andreas schlegel

Constructor Summary
NetAddressList()
           
 
Method Summary
 void add(NetAddress theNetAddress)
           
 void add(String theAddress, int thePort)
           
 boolean contains(NetAddress theNetAddress)
           
 boolean contains(String theIPaddress, int thePort)
           
 NetAddress get(int theIndex)
           
 NetAddress get(String theIPaddress, int thePort)
           
 ArrayList list()
           
 void remove(NetAddress theNetAddress)
           
 void remove(String theAddress, int thePort)
           
 void set(NetAddress[] theList)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetAddressList

public NetAddressList()
Method Detail

add

public void add(NetAddress theNetAddress)
Parameters:
theNetAddress - NetAddress

add

public void add(String theAddress,
                int thePort)
Parameters:
theAddress - String
thePort - int

remove

public void remove(String theAddress,
                   int thePort)
Parameters:
theAddress - String
thePort - int

remove

public void remove(NetAddress theNetAddress)
Parameters:
theNetAddress - NetAddress

get

public NetAddress get(String theIPaddress,
                      int thePort)

contains

public boolean contains(NetAddress theNetAddress)
Parameters:
theNetAddress - NetAddress
Returns:
boolean

contains

public boolean contains(String theIPaddress,
                        int thePort)
Parameters:
theIPaddress - String
thePort - int
Returns:
boolean

size

public int size()

set

public void set(NetAddress[] theList)
Parameters:
theList - NetAddress[]

list

public ArrayList list()
Returns:
ArrayList

get

public NetAddress get(int theIndex)
Parameters:
theIndex - int
Returns:
NetAddress


processing library oscP5 by Andreas Schlegel. (c) 2004-2012