Package net.solarnetwork.domain
Interface CopyingIdentity<K,C extends Identity<K>>
- All Superinterfaces:
Comparable<K>,Identity<K>
API for an identity with copying support.
- Since:
- 2.9
- Version:
- 1.0
- Author:
- matt
-
Method Summary
Modifier and TypeMethodDescriptionvoidCopy the properties of this entity into another entity.copyWithId(K id) Create a new copy of this entity with a given ID.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
copyWithId
Create a new copy of this entity with a given ID.- Parameters:
id- the ID to use in the copy- Returns:
- the new copy
-
copyTo
Copy the properties of this entity into another entity.- Parameters:
entity- the entity to copy the properties from this instance
-