Package org.apache.nemo.common
Interface Cloneable<T extends Cloneable<T>>
-
- Type Parameters:
T
- the type of objects that this class can clone
- All Known Implementing Classes:
BeamBoundedSourceVertex
,BeamUnboundedSourceVertex
,CachedSourceVertex
,EmptyComponents.EmptySourceVertex
,InMemorySourceVertex
,IRVertex
,LoopVertex
,MessageAggregatorVertex
,MessageGeneratorVertex
,OperatorVertex
,RelayVertex
,SamplingVertex
,SignalVertex
,SourceVertex
,TaskSizeSplitterVertex
public interface Cloneable<T extends Cloneable<T>>
This interface is implemented by objects that can be cloned.This interface also overcomes the drawback of
Cloneable
interface which doesn't have a clone method. Josh Bloch (a JDK author) has pointed out this in his book "Effective Java" as Override clone judiciously
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getClone()
Creates and returns a copy of this object.
-
-
-
Method Detail
-
getClone
T getClone()
Creates and returns a copy of this object.The precise meaning of "copy" may depend on the class of the object. The general intent is that, all fields of the object are copied.
- Returns:
- a clone of this object.
-
-