Package com.helger.base.clone
Interface ICloneable<DATATYPE>
- Type Parameters:
DATATYPE- The type to be returned by thegetClone()method.
- All Known Subinterfaces:
IMutableInteger<IMPLTYPE>,IMutableNumeric<IMPLTYPE>,IMutableObject<IMPLTYPE>
- All Known Implementing Classes:
AbstractMutableInteger,AbstractMutableNumeric,CallbackList,MutableBigDecimal,MutableBigInteger,MutableBoolean,MutableByte,MutableChar,MutableDouble,MutableFloat,MutableInt,MutableLong,MutableShort,Wrapper
public interface ICloneable<DATATYPE>
This is a type-safe replacement interface for the default
Cloneable interface since it contains the desired return
type and is accessible solely by the interface.- Author:
- Philip Helger
-
Method Summary
-
Method Details
-
getClone
@NonNull DATATYPE getClone()- Returns:
- A 100% deep-copy of the implementing class.
-