Class EventId
- java.lang.Object
-
- dk.cloudcreate.essentials.types.CharSequenceType<EventId>
-
- dk.cloudcreate.essentials.components.foundation.types.EventId
-
- All Implemented Interfaces:
Identifier,SingleValueType<CharSequence,EventId>,Serializable,CharSequence,Comparable<EventId>
public class EventId extends CharSequenceType<EventId> implements Identifier
An Event id provides a unique identifier for an Event- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EventId(CharSequence value)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EventIdof(CharSequence value)static Optional<EventId>optionalFrom(CharSequence value)Converts a non-nullvalueto anOptional.of(Object)with argumentEventId, otherwise it returns anOptional.empty()static EventIdrandom()-
Methods inherited from class dk.cloudcreate.essentials.types.CharSequenceType
charAt, chars, codePointAt, codePointBefore, codePointCount, codePoints, compareTo, compareTo, compareToIgnoreCase, contains, containsIgnoreCase, contentEquals, contentEquals, endsWith, equals, equalsIgnoreCase, getBytes, getBytes, getBytes, getChars, hashCode, indexOf, indexOf, indexOf, indexOf, isEmpty, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, length, offsetByCodePoints, startsWith, startsWith, subSequence, substring, substring, toCharArray, toString, value
-
-
-
-
Constructor Detail
-
EventId
public EventId(CharSequence value)
-
-
Method Detail
-
of
public static EventId of(CharSequence value)
-
optionalFrom
public static Optional<EventId> optionalFrom(CharSequence value)
Converts a non-nullvalueto anOptional.of(Object)with argumentEventId, otherwise it returns anOptional.empty()- Parameters:
value- the optional value- Returns:
- an
Optionalwith anEventIddepending on whethervalueis non-null, otherwise anOptional.empty()is returned
-
random
public static EventId random()
-
-