public class ActorId extends Object implements Comparable<ActorId>
Constructor and Description |
---|
ActorId(String id)
Initializes a new instance of the ActorId class with the id passed in.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ActorId other)
Compares this instance with a specified {link #ActorId} object and
indicates whether this instance precedes, follows, or appears in the same
position in the sort order as the specified actorId.
|
static ActorId |
createRandom()
Creates a new ActorId with a random id.
|
boolean |
equals(Object obj)
Checks if this instance is equals to the other instance.
|
int |
hashCode()
Calculates the hash code for this ActorId.
|
String |
toString()
Returns the String representation of this Actor's identifier.
|
public ActorId(String id)
id
- Value for actor idpublic String toString()
public int compareTo(ActorId other)
compareTo
in interface Comparable<ActorId>
other
- The actorId to compare with this instance.public int hashCode()
public boolean equals(Object obj)
public static ActorId createRandom()
Copyright © 2020. All rights reserved.