|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gzz.impl.SingleSlicer
A Slicer
for spaces containing only a single slice.
(May get rid of this once we have a Slicer
that
can manage more than a single slice... ;-)
)
Field Summary | |
protected java.lang.String |
sliceId
The String id of our slice. |
protected Space |
space
|
Constructor Summary | |
SingleSlicer(java.lang.String sliceId)
|
Method Summary | |
protected SliceVersion |
export()
|
SliceVersion |
export(java.lang.String slice)
Create a SliceVersion for a given slice. |
java.util.Map |
exportAll()
Create SliceVersion s for all slices. |
java.lang.String |
getSlice0()
Get the String id of the slice 0 (s.0) of this space. |
java.util.Set |
getSlices()
Get the String ids of the slices that are currently swapped in. |
void |
setSpace(Space space)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Space space
protected java.lang.String sliceId
Constructor Detail |
public SingleSlicer(java.lang.String sliceId)
Method Detail |
public void setSpace(Space space)
setSpace
in interface Slicer
public java.lang.String getSlice0()
Slicer
getSlice0
in interface Slicer
public java.util.Set getSlices()
Slicer
Set
of String
ids.
getSlices
in interface Slicer
public SliceVersion export(java.lang.String slice)
Slicer
SliceVersion
for a given slice.
Returns the current version of a slice, as a serializable object.
NOTE: The SliceVersion
returned may contain
unsaved spans; the SliceVersion
will not be
serializable if not all spans in it are saved first.
export
in interface Slicer
gzz.SliceVersion
public java.util.Map exportAll()
Slicer
SliceVersion
s for all slices.
Returns a Map
from slice String
ids
to serializable SliceVersion
representation of the
respective slice.
NOTE: The SliceVersion
returned may contain
unsaved spans; the SliceVersion
will not be
serializable if not all spans in it are saved first.
exportAll
in interface Slicer
gzz.SliceVersion
protected SliceVersion export()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |