Id - corda

corda / net.corda.core.utilities / Id

# Id

`open class Id<out VALUE : Any>`

Represents a unique, timestamped id.

### Parameters

`value` - unique value of the id.

`entityType` - optional id entity type.

`timestamp` - timestamp for the id.

### Constructors

#### <init> | Represents a unique, timestamped id. `Id(value: VALUE, entityType: String?, timestamp: Instant)`

### Properties

#### entityType | optional id entity type. `val entityType: String?`
#### timestamp | timestamp for the id. `val timestamp: Instant`
#### value | unique value of the id. `val value: VALUE`

### Functions

#### equals | `fun equals(other: Any?): Boolean`
#### hashCode | `fun hashCode(): Int`
#### toString | `fun toString(): String`

### Companion Object Functions

#### newInstance | Creates an id using Instant.now as timestamp. `fun <V : Any> newInstance(value: V, entityType: String? = null, timestamp: Instant = now()): Id<V>`