Package org.apache.jena.atlas.data
Class AbstractDataBag<E>
- java.lang.Object
-
- org.apache.jena.atlas.data.AbstractDataBag<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>
,DataBag<E>
,org.apache.jena.atlas.lib.Closeable
,org.apache.jena.atlas.lib.Sink<E>
- Direct Known Subclasses:
DefaultDataBag
,SortedDataBag
public abstract class AbstractDataBag<E> extends java.lang.Object implements DataBag<E>
Abstract implementation of DataBag. Used as a parent for all three of the types of data bags.
-
-
Constructor Summary
Constructors Constructor Description AbstractDataBag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEmpty()
void
send(E item)
long
size()
Get the number of elements in the bag, both in memory and on disk.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
size
public long size()
Description copied from interface:DataBag
Get the number of elements in the bag, both in memory and on disk.
-
-