public class EmptyAddedRelations extends Object implements AddedRelationsContainer
EMPTY| Modifier and Type | Method and Description |
|---|---|
boolean |
add(InternalRelation relation) |
void |
clear()
Clears the container which releases allocated memory.
|
Collection<InternalRelation> |
getAllUnsafe()
This method returns all relations in this container.
|
static EmptyAddedRelations |
getInstance() |
Iterable<InternalRelation> |
getView(com.google.common.base.Predicate<InternalRelation> filter) |
Iterable<InternalRelation> |
getViewOfPreviousRelations(long id) |
Iterable<InternalRelation> |
getViewOfProperties(com.google.common.base.Predicate<InternalRelation> filter) |
List<InternalRelation> |
getViewOfProperties(String... keys) |
List<InternalRelation> |
getViewOfProperties(String key,
Object value) |
boolean |
isEmpty() |
boolean |
remove(InternalRelation relation) |
public static EmptyAddedRelations getInstance()
public boolean add(InternalRelation relation)
add in interface AddedRelationsContainerpublic boolean remove(InternalRelation relation)
remove in interface AddedRelationsContainerpublic Iterable<InternalRelation> getView(com.google.common.base.Predicate<InternalRelation> filter)
getView in interface AddedRelationsContainerpublic Iterable<InternalRelation> getViewOfProperties(com.google.common.base.Predicate<InternalRelation> filter)
getViewOfProperties in interface AddedRelationsContainerpublic List<InternalRelation> getViewOfProperties(String... keys)
getViewOfProperties in interface AddedRelationsContainerpublic List<InternalRelation> getViewOfProperties(String key, Object value)
getViewOfProperties in interface AddedRelationsContainerpublic Iterable<InternalRelation> getViewOfPreviousRelations(long id)
getViewOfPreviousRelations in interface AddedRelationsContainerpublic boolean isEmpty()
isEmpty in interface AddedRelationsContainerpublic Collection<InternalRelation> getAllUnsafe()
AddedRelationsContainergetAllUnsafe in interface AddedRelationsContainerpublic void clear()
AddedRelationsContainerclear in interface AddedRelationsContainerCopyright © 2012–2024. All rights reserved.