|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectview.AbstractFilledShape
public abstract class AbstractFilledShape
Class that supports generic key generation for subclasses that cannot provide their own.
| Field Summary | |
|---|---|
private static int |
COUNT
An internal counter for automatic naming. |
private Object |
key
The hopefully unique key. |
| Constructor Summary | |
|---|---|
protected |
AbstractFilledShape(Object unique)
Constructs a new indexed shape. |
| Method Summary | |
|---|---|
boolean |
equals(Object that)
We are equal, if the keys are equal. |
Object |
getUnique()
Return the unique key. |
int |
hashCode()
Hash is the hash from our unique key. |
private static int |
nextCount()
Gets the next available number at automatic naming. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface view.FilledShape |
|---|
getShape, isFilled |
| Field Detail |
|---|
private static int COUNT
private Object key
| Constructor Detail |
|---|
protected AbstractFilledShape(Object unique)
| Method Detail |
|---|
private static int nextCount()
public Object getUnique()
getUnique in interface FilledShapepublic int hashCode()
hashCode in class Objectpublic boolean equals(Object that)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||