ix.util
Class Mark
java.lang.Object
ix.util.Mark
public class Mark
- extends java.lang.Object
A class used when marking objects as used, visited, etc. An algorithm
can create a Mark that is new and hence not == to any Marks created
earlier. The new Mark can then be used to mark objects as they are
vistied (or whatever). Although Marks are meant to be distinguished
by object-identity alone (ie, by ==), they contain some fields for
debugging purposes: a String that names the algorithm that created
the mark, and a long for tellng Marks apart "visually" (e.g. if they're
printed).
- See Also:
Markable
Field Summary |
(package private) static long |
count
|
(package private) java.lang.String |
createdBy
|
(package private) long |
number
|
Constructor Summary |
Mark(java.lang.String createdBy)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
count
static long count
createdBy
java.lang.String createdBy
number
long number
Mark
public Mark(java.lang.String createdBy)