org.kinsources.kiwa.accounts
Class AccountIdIndex

java.lang.Object
  extended by org.kinsources.kiwa.accounts.AccountIdIndex
All Implemented Interfaces:
java.lang.Iterable<Account>

public class AccountIdIndex
extends java.lang.Object
implements java.lang.Iterable<Account>

The IdAccountIndex class represents an account index.

Author:
christian.momon@devinsy.fr

Constructor Summary
AccountIdIndex()
           
 
Method Summary
 void clear()
           
 Account getById(long value)
           
 boolean isEmpty()
           
 boolean isNotEmpty()
           
 java.util.Iterator<Account> iterator()
           
 java.util.Set<java.lang.Long> keys()
           
 Account put(Account source)
           
 void rebuild(Accounts source)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountIdIndex

public AccountIdIndex()
Method Detail

clear

public void clear()

getById

public Account getById(long value)
Parameters:
id -
Returns:

isEmpty

public boolean isEmpty()
Returns:

isNotEmpty

public boolean isNotEmpty()
Returns:

iterator

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

keys

public java.util.Set<java.lang.Long> keys()
Returns:

put

public Account put(Account source)

rebuild

public void rebuild(Accounts source)
Parameters:
source -

size

public int size()
Returns: