|
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 | ||||||||
T - The type of the applicable stringable objects.@Participant(value="Strategy") public interface StringablePolicy<T>
Returns a textual representation in form of a char sequence
of a given stringable object.
Stringable| Nested Class Summary | |
|---|---|
static class |
StringablePolicy.NameIdiom
An idiom that allows the retrieval of a given StringablePolicy
defined as an enumeration constant based on an exact name of
another, possibly unrelated, policy. |
static class |
StringablePolicy.Type
A policy type is a hint a stringable
context can use to decide how to use the textual representation a
given policy generates in conjunction with
additional textual information required to generate an overall
representation. |
| Method Summary | |
|---|---|
CharSequence |
toString(T object)
Returns a textual representation of the object supplied as object in form of a char sequence. |
StringablePolicy.Type |
type()
Returns the type of this policy. |
| Method Detail |
|---|
CharSequence toString(T object)
object in form of a char sequence.
object - The object; cannot be null.
NullPointerException - If object is null.Stringable.toString(StringablePolicy)StringablePolicy.Type type()
type of this policy.
The stringable context can use the
type to decide how to use the textual representation of
this policy in conjunction with additional text.
|
Gunni Rode / rode.dk | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||