netP5
Class NetAddressList
java.lang.Object
netP5.NetAddressList
public class NetAddressList
- extends java.lang.Object
NetAddressList is an arraylist of netaddresses.
- Author:
- andreas schlegel
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetAddressList
public NetAddressList()
add
public void add(NetAddress theNetAddress)
- Parameters:
theNetAddress
- NetAddress
add
public void add(java.lang.String theAddress,
int thePort)
- Parameters:
theAddress
- StringthePort
- int
remove
public void remove(java.lang.String theAddress,
int thePort)
- Parameters:
theAddress
- StringthePort
- int
remove
public void remove(NetAddress theNetAddress)
- Parameters:
theNetAddress
- NetAddress
get
public NetAddress get(java.lang.String theIPaddress,
int thePort)
contains
public boolean contains(NetAddress theNetAddress)
- Parameters:
theNetAddress
- NetAddress
- Returns:
- boolean
contains
public boolean contains(java.lang.String theIPaddress,
int thePort)
- Parameters:
theIPaddress
- StringthePort
- int
- Returns:
- boolean
size
public int size()
set
public void set(NetAddress[] theList)
- Parameters:
theList
- NetAddress[]
list
public java.util.ArrayList list()
- Returns:
- ArrayList
get
public NetAddress get(int theIndex)
- Parameters:
theIndex
- int
- Returns:
- NetAddress
processing library oscP5 by Andreas Schlegel. (c) 2010