|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gzz.slices.SliceVersion
A version of a slice. (Note that as Gzz currently doesn't support multiple slices, you can think of this as "a version of a space.") This is immutable and can be serialized for saving.
SliceVersion.Diff
,
Serialized FormNested Class Summary | |
static class |
SliceVersion.Conn
A serializable representation of a single ZZ connection. |
static class |
SliceVersion.Diff
A diff between two SliceVersion s. |
Nested classes inherited from class gzz.util.Version |
|
Field Summary | |
java.util.Set |
connections
The connections in this version. |
java.util.Map |
contents
The cell contents in this version. |
static boolean |
dbg
|
static SliceVersion |
EMPTY_VERSION
|
static java.lang.String |
rcsid
|
Constructor Summary | |
SliceVersion(java.util.Set connections,
java.util.Map contents)
Create a new SliceVersion given the connections and cell contents in that version. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
Version.Diff |
getDiffFrom(Version previous)
Return the diff from a previous to this version. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String rcsid
public static boolean dbg
public static final SliceVersion EMPTY_VERSION
public final java.util.Set connections
Conn
objects.
public final java.util.Map contents
String
cell ids to arbitrary serializable objects
representing the cell content.
Constructor Detail |
public SliceVersion(java.util.Set connections, java.util.Map contents) throws gzz.errors.ZZAlreadyConnectedException
gzz.errors.ZZAlreadyConnectedException
- if there is more than one
Conn object for the same cell, dimension and direction.Method Detail |
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Version.Diff getDiffFrom(Version previous)
Version
previous
must be a Version
of the same kind as this one.
getDiffFrom
in interface Version
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |