org.starhope.appius.user.notifications
Class NotificationReplyVerbSet

java.lang.Object
  extended by org.starhope.appius.user.notifications.NotificationReplyVerbSet
All Implemented Interfaces:
Serializable, Iterable<NotificationReplyVerb>, Collection<NotificationReplyVerb>, CastsToJSON

public class NotificationReplyVerbSet
extends Object
implements Collection<NotificationReplyVerb>, CastsToJSON

WRITEME: Document this type.

Author:
twheys@gmail.com, brpocock@star-hope.org
See Also:
Serialized Form

Field Summary
private  Collection<NotificationReplyVerb> n
          Internal storage implementation
private static long serialVersionUID
          Java serialisation unique ID
 
Constructor Summary
NotificationReplyVerbSet()
          Constructor for an empty set
NotificationReplyVerbSet(Collection<NotificationReplyVerb> other)
          WRITEME: Document this constructor brpocock@star-hope.org
 
Method Summary
 boolean add(NotificationReplyVerb e)
           
 boolean addAll(Collection<? extends NotificationReplyVerb> c)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 boolean isEmpty()
           
 Iterator<NotificationReplyVerb> iterator()
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 int size()
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 org.json.JSONObject toJSON()
          This returns a copy of the object's data cast into a JSON form.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Java serialisation unique ID

See Also:
Constant Field Values

n

private final Collection<NotificationReplyVerb> n
Internal storage implementation

Constructor Detail

NotificationReplyVerbSet

public NotificationReplyVerbSet()
Constructor for an empty set


NotificationReplyVerbSet

public NotificationReplyVerbSet(Collection<NotificationReplyVerb> other)
WRITEME: Document this constructor brpocock@star-hope.org

Parameters:
other - another collection of reply verbs to be added
Method Detail

add

public boolean add(NotificationReplyVerb e)
Specified by:
add in interface Collection<NotificationReplyVerb>
See Also:
Collection.add(java.lang.Object)

addAll

public boolean addAll(Collection<? extends NotificationReplyVerb> c)
Specified by:
addAll in interface Collection<NotificationReplyVerb>
See Also:
Collection.addAll(java.util.Collection)

clear

public void clear()
Specified by:
clear in interface Collection<NotificationReplyVerb>
See Also:
Collection.clear()

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<NotificationReplyVerb>
See Also:
Collection.contains(java.lang.Object)

containsAll

public boolean containsAll(Collection<?> c)
Specified by:
containsAll in interface Collection<NotificationReplyVerb>
See Also:
Collection.containsAll(java.util.Collection)

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<NotificationReplyVerb>
See Also:
Collection.isEmpty()

iterator

public Iterator<NotificationReplyVerb> iterator()
Specified by:
iterator in interface Iterable<NotificationReplyVerb>
Specified by:
iterator in interface Collection<NotificationReplyVerb>
See Also:
Collection.iterator()

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<NotificationReplyVerb>
See Also:
Collection.remove(java.lang.Object)

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<NotificationReplyVerb>
See Also:
Collection.removeAll(java.util.Collection)

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<NotificationReplyVerb>
See Also:
Collection.retainAll(java.util.Collection)

size

public int size()
Specified by:
size in interface Collection<NotificationReplyVerb>
See Also:
Collection.size()

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<NotificationReplyVerb>
See Also:
Collection.toArray()

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface Collection<NotificationReplyVerb>
See Also:
java.util.Collection#toArray(T[])

toJSON

public org.json.JSONObject toJSON()
Description copied from interface: CastsToJSON
This returns a copy of the object's data cast into a JSON form.

Specified by:
toJSON in interface CastsToJSON
Returns:
The string representing this object in JSON format
See Also:
CastsToJSON.toJSON()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()