Salt  3.4.2
A powerful, tagset-independent and theory-neutral meta model and API for storing, manipulating, and representing nearly all types of linguistic data .
org.corpus_tools.salt.util.Copyable< T > Interface Template Reference

An interface to ensure that an object is copyable. More...

Inherited by org.corpus_tools.salt.graph.impl.LabelImpl, and org.corpus_tools.salt.graph.Label.

Public Member Functions

copy (T other)
 Takes a new 'empty' object and sets all its fields by copying by value. More...
 

Detailed Description

An interface to ensure that an object is copyable.

This is an alternative to the Cloneable interface which seems to be very controversial.

Author
florian

Member Function Documentation

◆ copy()

T org.corpus_tools.salt.util.Copyable< T >.copy ( other)

Takes a new 'empty' object and sets all its fields by copying by value.

Parameters
surrogateempty object to be filled
Returns
returns surrogate