Package io.dialob.executor.model
Class IdUtils
- java.lang.Object
-
- io.dialob.executor.model.IdUtils
-
public class IdUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static ItemIdQUESTIONNAIRE_ID
-
Constructor Summary
Constructors Constructor Description IdUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanmatches(ItemId itemIdLh, ItemId itemIdRh)static booleanmatches(Optional<ItemId> itemIdLh, Optional<ItemId> itemIdRh)static ItemIdreadIdFrom(com.google.protobuf.CodedInputStream input)static ItemIdtoId(String itemId)static ItemIdtoId(String scopeId, String itemId)static ItemIdtoIdNullable(String itemId)static Collection<ItemId>toIds(Iterable<String> itemIds)static StringtoString(ItemId itemId)static StringtoString(ValueSetId valueSetId)static ItemIdwithIndex(ItemId itemId, int index)static voidwriteIdTo(ItemId id, com.google.protobuf.CodedOutputStream output)
-
-
-
Field Detail
-
QUESTIONNAIRE_ID
public static final ItemId QUESTIONNAIRE_ID
-
-
Method Detail
-
toString
public static String toString(ValueSetId valueSetId)
-
toIds
public static Collection<ItemId> toIds(Iterable<String> itemIds)
-
matches
public static boolean matches(@Nonnull Optional<ItemId> itemIdLh, @Nonnull Optional<ItemId> itemIdRh)
-
writeIdTo
public static void writeIdTo(@Nullable ItemId id, com.google.protobuf.CodedOutputStream output) throws IOException- Throws:
IOException
-
readIdFrom
@Nullable public static ItemId readIdFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
-