|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.runtime.RuntimeProperty
public abstract class RuntimeProperty
This abstract class represents a property of the runtime environment. A runtime property has a finite number of
values -- each value having a corresponding RuntimeProperty instance, and only one. Subclasses must
ensure that only instance exists per runtime value. Based on this assumption, RuntimeProperty instances can be
compared using the shallow equals operator '=='.
When running on a JVM, a RuntimeProperty has a runtime value (and only one), which can be retrieved using
getCurrentValue().
| Field Summary | |
|---|---|
protected java.lang.String |
stringRepresentation
The String representation of this RuntimeProperty, set at creation time |
| Constructor Summary | |
|---|---|
protected |
RuntimeProperty(java.lang.String stringRepresentation)
Creates a new RuntimeProperty using the specified String representation. |
| Method Summary | |
|---|---|
protected abstract RuntimeProperty |
getCurrentValue()
Returns the current runtime environment's value of this runtime property. |
boolean |
isCurrent()
Returns true if this instance is the same instance as the one returned by getCurrentValue(). |
java.lang.String |
toString()
Returns the String representation passed to the constructor at creation time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.String stringRepresentation
| Constructor Detail |
|---|
protected RuntimeProperty(java.lang.String stringRepresentation)
stringRepresentation - a String representation of this property| Method Detail |
|---|
public boolean isCurrent()
true if this instance is the same instance as the one returned by getCurrentValue().
public java.lang.String toString()
toString in class java.lang.Objectprotected abstract RuntimeProperty getCurrentValue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard