org.kinsources.kiwa.sciboard
Class Votes

java.lang.Object
  extended by org.kinsources.kiwa.sciboard.Votes
All Implemented Interfaces:
java.lang.Iterable<Vote>

public class Votes
extends java.lang.Object
implements java.lang.Iterable<Vote>

Author:
christian.momon@devinsy.fr

Constructor Summary
Votes()
           
Votes(int initialCapacity)
           
 
Method Summary
 void add(Vote source)
           
 void clear()
           
 Votes copy()
          This methods returns a shallow copy of the current object.
 Vote getByOwnerId(long id)
           
 boolean isEmpty()
           
 boolean isNotEmpty()
           
 java.util.Iterator<Vote> iterator()
           
 void remove(Vote vote)
           
 int size()
           
 java.util.List<Vote> toList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Votes

public Votes()

Votes

public Votes(int initialCapacity)
Method Detail

add

public void add(Vote source)
Parameters:
log -

clear

public void clear()

copy

public Votes copy()
This methods returns a shallow copy of the current object.

Returns:
a shallow copy of the current object.

getByOwnerId

public Vote getByOwnerId(long id)
Parameters:
index -
Returns:

isEmpty

public boolean isEmpty()
Returns:

isNotEmpty

public boolean isNotEmpty()
Returns:

iterator

public java.util.Iterator<Vote> iterator()
Specified by:
iterator in interface java.lang.Iterable<Vote>

remove

public void remove(Vote vote)
Parameters:
id -

size

public int size()
Returns:

toList

public java.util.List<Vote> toList()
Returns: