org.erights.e.elib.slot
Class FinalSlot
java.lang.Object
|
+--org.erights.e.elib.slot.FinalSlot
- All Implemented Interfaces:
- Slot
- public final class FinalSlot
- extends Object
- implements Slot
Untamed: An immutable slot whose initial value is its only value.
- Author:
- Mark S. Miller
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myValue
private final Object myValue
FinalSlot
FinalSlot(Object initValue)
getValue
public Object getValue()
- Enabled: @return the value this slot is immutably bound to.
- Specified by:
getValue
in interface Slot
setValue
public void setValue(Object newValue)
- Enabled: Complains that the variable is immutable
- Specified by:
setValue
in interface Slot
__printOn
public void __printOn(TextWriter out)
throws IOException
- Enabled:
IOException
comments?