public abstract class MaritimeId extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
MaritimeId(String scheme) |
| Modifier and Type | Method and Description |
|---|---|
static MaritimeId |
create(String id)
Creates a id from the specified string based representation of the id.
|
abstract String |
getId() |
int |
getIdAsInt() |
protected MaritimeId(String scheme)
public static MaritimeId create(String id)
id - the string based representation to create the id fromNullPointerException - if the specified id string is nullIllegalArgumentException - if the specified string is not a valid maritime idpublic abstract String getId()
public int getIdAsInt()
Copyright © 2012–2015 Danish Maritime Authority. All rights reserved.