org.kinsources.kiwa.actulog
Class Wires

java.lang.Object
  extended by org.kinsources.kiwa.actulog.Wires
All Implemented Interfaces:
java.lang.Iterable<Wire>

public class Wires
extends java.lang.Object
implements java.lang.Iterable<Wire>

Author:
christian.momon@devinsy.fr

Constructor Summary
Wires()
           
Wires(int initialCapacity)
           
 
Method Summary
 void add(Wire wire)
           
 void clear()
           
 Wires copy()
          This methods returns a shallow copy of the current object.
 Wire first()
           
 Wires first(int targetCount)
           
 Wire getByIndex(int index)
           
 boolean isEmpty()
           
 boolean isNotEmpty()
           
 java.util.Iterator<Wire> iterator()
           
 Wire last()
           
 long lastId()
           
 Wire latestPublishedWire(java.util.Locale locale)
           
 Wires latestPublishedWires(int targetCount)
           
 Wires latestPublishedWires(int targetCount, java.util.Locale locale)
           
 Wires publishedWires()
           
 Wires publishedWires(java.util.Locale locale)
           
 void remove(Wire wire)
           
 Wires reverse()
           
 int size()
           
 Wires sortById()
           
 Wires sortByPublicationDate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wires

public Wires()

Wires

public Wires(int initialCapacity)
Method Detail

add

public void add(Wire wire)
Parameters:
eventLog -

clear

public void clear()

copy

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

Returns:
a shallow copy of the current object.

first

public Wire first()
Parameters:
targetCount -
Returns:

first

public Wires first(int targetCount)
Parameters:
targetCount -
Returns:

getByIndex

public Wire getByIndex(int index)
Parameters:
index -
Returns:

isEmpty

public boolean isEmpty()
Returns:

isNotEmpty

public boolean isNotEmpty()
Returns:

iterator

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

last

public Wire last()
Parameters:
targetCount -
Returns:

lastId

public long lastId()
Returns:

latestPublishedWire

public Wire latestPublishedWire(java.util.Locale locale)
Parameters:
targetCount -
Returns:

latestPublishedWires

public Wires latestPublishedWires(int targetCount)
Parameters:
targetCount -
Returns:

latestPublishedWires

public Wires latestPublishedWires(int targetCount,
                                  java.util.Locale locale)
Parameters:
targetCount -
Returns:

publishedWires

public Wires publishedWires()
Returns:

publishedWires

public Wires publishedWires(java.util.Locale locale)
Returns:

remove

public void remove(Wire wire)
Parameters:
id -

reverse

public Wires reverse()
Returns:

size

public int size()
Returns:

sortById

public Wires sortById()
Returns:

sortByPublicationDate

public Wires sortByPublicationDate()
Returns: