|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmarkov.EventsSet<E>
public class EventsSet<E extends Event>
This class represent a set of Events. The set should be build at the beggining and should not be changed in any way afterwards.
Constructor Summary | |
---|---|
EventsSet()
Creates an empty set of Events; |
Method Summary | |
---|---|
boolean |
add(E e)
Adds the Event e to the set. |
boolean |
contains(Event e)
Returns true if the set contains this Event. |
static EventsSet<Event> |
createEventSet(int numE)
Creates a set with numE Events. |
E[] |
toEventArray()
Returns an array with the Events in the set. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EventsSet()
Method Detail |
---|
public static EventsSet<Event> createEventSet(int numE)
numE
- The number of events.public boolean add(E e)
e
- The event to be added.
public boolean contains(Event e)
public E[] toEventArray()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |