|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSedia
public class Sedia
Field Summary | |
---|---|
private int |
accessCount
|
private static int |
globalAccessCount
Campo privato che conta il numero di accessi eseguiti allo stato della classe. |
private boolean |
occupata
|
Constructor Summary | |
---|---|
Sedia()
|
Method Summary | |
---|---|
int |
getCounter()
|
static int |
getGlobalCounter()
|
boolean |
isOccupata()
Metodo che testa lo stato libero/occupato dell'istanza. |
boolean |
libera()
|
static void |
main(java.lang.String[] sarchiapone)
|
boolean |
occupa()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static int globalAccessCount
private int accessCount
private boolean occupata
Constructor Detail |
---|
public Sedia()
Method Detail |
---|
public boolean isOccupata()
public boolean occupa()
public boolean libera()
public int getCounter()
public static int getGlobalCounter()
public static void main(java.lang.String[] sarchiapone)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |