org.kinsources.kiwa.sciboard
Class Votes
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Votes
public Votes()
Votes
public Votes(int initialCapacity)
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: