Struct

All Implemented Interfaces: java.lang.Cloneable, java.io.Serializable

public interface Struct<T> extends Cloneable, Serializable

Created by lexchou on 11/13/2017.

Methods

MethodDescription
byVal(T value)Try to copy the input value if it’s Struct
clone()Clone current instance
copyFrom(T t)Copy internal state from argument t

byVal(T value)

public static T <T>byVal(T value)

Try to copy the input value if it’s Struct

Parameters:

ParameterTypeDescription
valueTinput value to clone

Returns: T - null if input is null or cloned instance

clone()

public abstract T clone()

Clone current instance

Returns: T - cloned instance

copyFrom(T t)

public abstract void copyFrom(T t)

Copy internal state from argument t

Parameters:

ParameterTypeDescription
tTsource instance to copy