|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Lock
Interface for a combination lock.
Method Summary | |
---|---|
boolean |
changeCombo(Combination oldCom,
Combination newCom)
|
boolean |
close()
Close the lock. |
boolean |
open(Combination combo)
If the combination is correct, open the lock. |
Method Detail |
---|
boolean open(Combination combo)
combo
- the attempted combination
boolean close()
boolean changeCombo(Combination oldCom, Combination newCom)
oldCom
- the current combinationnewCom
- the combination to change to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |