IConstructable Interface

IConstructable Interface

This Package | All Packages

public interface IConstructable

Allows for immutable objects to indicate what constructor arguments would result in an equivalent object. A constructable object is one that can be persisted in a simple and automatic way by asking it for the constructor arguments that can be used to reconstruct the object. Failing to provide a constructor that maps to what getConstructorArgs returns prevents the object from being persisted properly.

Methods
Name Description
getConstructorArgs()

Return Value:

Returns an array of ConstructorArg objects, which have a current value and type.

Methods

IConstructable.getConstructorArgs

Syntax
public ConstructorArg[] getConstructorArgs();
Return Value

Returns an array of ConstructorArg objects, which have a current value and type.

Description