Class EventId
java.lang.Object
dk.cloudcreate.essentials.types.CharSequenceType<EventId>
dk.cloudcreate.essentials.components.foundation.types.EventId
- All Implemented Interfaces:
dk.cloudcreate.essentials.types.Identifier,dk.cloudcreate.essentials.types.SingleValueType<CharSequence,,EventId> Serializable,CharSequence,Comparable<EventId>
public class EventId
extends dk.cloudcreate.essentials.types.CharSequenceType<EventId>
implements dk.cloudcreate.essentials.types.Identifier
An Event id provides a unique identifier for an Event
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EventIdof(CharSequence value) 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, valueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dk.cloudcreate.essentials.types.SingleValueType
getValue
-
Constructor Details
-
EventId
-
-
Method Details
-
of
-
optionalFrom
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
-