twaver.core.model
Interface IHashList<T extends Identifiable>

Type Parameters:
T -
All Superinterfaces:
java.lang.Iterable<T>
All Known Subinterfaces:
IDataBox<T>, IElementBox, IHashCollection<T>, ILayerBox, ISelectionModel<T>
All Known Implementing Classes:
AlarmBox, DataBox, ElementBox, HashCollection, HashList, LayerBox, SelectionModel

public interface IHashList<T extends Identifiable>
extends java.lang.Iterable<T>

哈希集合接口,twaver内部使用


Method Summary
 boolean add(java.util.Collection<? extends T> datas)
           
 boolean add(java.util.Collection<? extends T> datas, int index)
           
 boolean add(T data)
           
 boolean add(T data, int index)
           
 boolean clearAll()
           
 boolean contains(T data)
           
 boolean containsById(int id)
           
 boolean forEach(Action<T> action)
           
 boolean forEachReverse(Action<T> action)
           
 T getById(int id)
           
 T getByIndex(int index)
           
 java.util.Collection<T> getDatas()
           
 T getLastData()
           
 int indexOf(T data)
           
 boolean isEmpty()
           
 boolean remove(java.util.Collection<? extends T> datas)
           
 boolean remove(T data)
           
 boolean removeById(int id)
           
 java.lang.Iterable<T> reverseIterator()
           
 boolean set(java.util.Collection<? extends T> datas)
           
 boolean set(T data)
           
 boolean setIndex(int index, T data)
           
 int size()
           
 java.util.Collection<T> toDatas()
           
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

add

boolean add(T data)

add

boolean add(T data,
            int index)

add

boolean add(java.util.Collection<? extends T> datas)

add

boolean add(java.util.Collection<? extends T> datas,
            int index)

remove

boolean remove(T data)

removeById

boolean removeById(int id)

remove

boolean remove(java.util.Collection<? extends T> datas)

clearAll

boolean clearAll()

set

boolean set(T data)

set

boolean set(java.util.Collection<? extends T> datas)

getById

T getById(int id)

getByIndex

T getByIndex(int index)

setIndex

boolean setIndex(int index,
                 T data)

indexOf

int indexOf(T data)

getDatas

java.util.Collection<T> getDatas()

toDatas

java.util.Collection<T> toDatas()

forEach

boolean forEach(Action<T> action)

forEachReverse

boolean forEachReverse(Action<T> action)

size

int size()

isEmpty

boolean isEmpty()

contains

boolean contains(T data)

containsById

boolean containsById(int id)

getLastData

T getLastData()

reverseIterator

java.lang.Iterable<T> reverseIterator()