public class DomainObject extends Object
Modifier and Type | Field and Description |
---|---|
protected Long |
id
IDs can be long, therefore this data type.
|
Modifier | Constructor and Description |
---|---|
protected |
DomainObject()
The ID is initially set to 0.
|
protected |
DomainObject(Long id)
Initialises the ID.
|
protected Long id
HashMap
) and thus should be of type Long
instead of long
.protected DomainObject()
protected DomainObject(Long id)
id
- the new ID.NullPointerException
- if id is null
.IllegalArgumentException
- if id is < 0.Copyright © 2014 EMBL-EBI. All rights reserved.