public class Collision extends Object implements Comparable<Collision>
Comparable| Constructor and Description |
|---|
Collision()
Default constructor.
|
Collision(List<CollisionEvent> events)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Collision other) |
boolean |
equals(Object obj) |
long |
getBegin()
Getter for begin.
|
long |
getEnd()
Getter for end.
|
List<CollisionEvent> |
getEvents()
Getter for events.
|
int |
hashCode() |
void |
setBegin(long begin)
Setter for begin.
|
void |
setEnd(long end)
Setter for end.
|
String |
toString() |
public Collision()
public Collision(List<CollisionEvent> events)
events - collision eventspublic int compareTo(Collision other)
compareTo in interface Comparable<Collision>public long getBegin()
public void setBegin(long begin)
begin - the begin to setpublic long getEnd()
public void setEnd(long end)
end - the end to setpublic List<CollisionEvent> getEvents()
Copyright © 2019 OSIVIA. All rights reserved.