|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.phys2d.raw.BodyList
A typed list of Body
Constructor Summary | |
BodyList()
Create an empty list |
Method Summary | |
void |
add(Body body)
Add a body to the list |
void |
clear()
Clear all the elements out of the list |
boolean |
contains(Body body)
Check if this list contains the specified body |
Body |
get(int i)
Get a body at a specific index |
BodyList |
getContentsExcluding(BodyList others)
Get a list of bodies containing all of the bodies in this list except those specified |
void |
remove(Body body)
Remove a body from the list |
int |
size()
Get the number of elements in the list |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BodyList()
Method Detail |
public void add(Body body)
body
- The body to addpublic int size()
public void remove(Body body)
body
- The body to remove from the listpublic Body get(int i)
i
- The index of the body to retrieve
public void clear()
public boolean contains(Body body)
body
- The body to look for
public BodyList getContentsExcluding(BodyList others)
others
- The bodies that should be removed from the contents
public java.lang.String toString()
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |