|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vfny.geoserver.global.dto.CloneLibrary
CloneLibrary purpose is used to try and Set up a Deep Copy for DTO objets.
Static Library class for cloning complex structures independant of their contents.
Jody here - this is much more accessable when presented to the user as new Type( Type ) idiom. Java clone is messed up, I have seen several projects move to a copy() method or the above idom.
For the here and now we can use the above Idom. This will even work with all of our lists and Maps since we are only ever using Strings (imutable) in them.
Constructor Summary | |
CloneLibrary()
|
Method Summary | |
static com.vividsolutions.jts.geom.Envelope |
clone(com.vividsolutions.jts.geom.Envelope e)
clone purpose. |
static java.util.List |
clone(java.util.List source)
clone purpose. |
static java.util.Map |
clone(java.util.Map source)
clone purpose. |
static java.lang.String[] |
clone(java.lang.String[] array)
Clone a string array |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CloneLibrary()
Method Detail |
public static java.util.List clone(java.util.List source) throws java.lang.CloneNotSupportedException
Clones a List so that it matches the requirements that the returned object would be equal to the source.
source
- The list to be cloned.
java.lang.CloneNotSupportedException
Object.clone()
,
List
public static java.util.Map clone(java.util.Map source) throws java.lang.CloneNotSupportedException
Clones a Map so that it matches the requirements that the returned object would be equal to the source.
source
- The Map to be cloned.
java.lang.CloneNotSupportedException
Object.clone()
,
Map
public static com.vividsolutions.jts.geom.Envelope clone(com.vividsolutions.jts.geom.Envelope e)
Clones a Envelope so that it matches the requirements that the returned object would be equal to the source.
e
- The Envelope to be cloned.
Object.clone()
,
Envelope
public static java.lang.String[] clone(java.lang.String[] array)
array
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |