C - The concrete type of the composite object.public interface Composite<C extends Composite<C>> extends Comparable<C>
java.lang.Comparable interface that are relevant to all composite objects.
Since the java.lang.Cloneable interface is essentially broken it is not
included and replaced with a parameterized copy() method.| Modifier and Type | Method and Description |
|---|---|
<T extends Composite<C>> |
copy()
This method creates an exact copy of a composite.
|
String |
toString(String indentation)
This method is an extension of the
Object.toString() method that
includes an indentation string that can be prepended to each line in a
composite class that requires multiple lines for its formatted output. |
compareToString toString(String indentation)
Object.toString() method that
includes an indentation string that can be prepended to each line in a
composite class that requires multiple lines for its formatted output.indentation - The string to be prepended to each line output.Copyright © 2016 Crater Dog Technologies(TM). All rights reserved.