|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdk.rode.thesis.meta.util.Arguments.Argument
public static final class Arguments.Argument
An argument represents a single argument, with or without an associated value.
| Field Summary | |
|---|---|
String |
name
The argument name (excluding prefixed -). |
String |
value
The associated value. |
| Constructor Summary | |
|---|---|
Arguments.Argument(String name,
String value)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Returns true if object is an argument with
the same name as this argument, regardless of value. |
int |
hashCode()
Returns the hash code of this argument. |
String |
toString()
Returns the string representation of this argument. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final String name
Never null.
public final String value
Can be null.
| Constructor Detail |
|---|
Arguments.Argument(String name,
String value)
name - The argument name, excluding prefixed -; never null.value - The associated value; can be null.| Method Detail |
|---|
public final boolean equals(Object object)
object is an argument with
the same name as this argument, regardless of value.
equals in class Objectobject - The object to test; can be null.
public final int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
Gunni Rode / rode.dk | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||