Class ValidationUtils
- java.lang.Object
-
- software.amazon.smithy.model.validation.ValidationUtils
-
public final class ValidationUtils extends java.lang.Object
Utility methods used when validating.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T extends ToShapeId>
java.util.Map<java.lang.String,java.util.List<ShapeId>>findDuplicateShapeNames(java.util.Collection<T> shapes)
Deprecated.static java.lang.String
orderedTickedList(java.util.Collection<?> values)
Creates a comma separated string made up of the given collection.static java.util.List<java.lang.String>
splitCamelCaseWord(java.lang.String word)
Splits a camelCase word into a list of words.static java.lang.String
tickedList(java.util.Collection<?> values)
Creates a comma separated string made up of the given collection.static java.lang.String
tickedList(java.util.stream.Stream<?> values)
-
-
-
Method Detail
-
splitCamelCaseWord
public static java.util.List<java.lang.String> splitCamelCaseWord(java.lang.String word)
Splits a camelCase word into a list of words.- Parameters:
word
- Word to split.- Returns:
- Returns the split words.
-
orderedTickedList
public static java.lang.String orderedTickedList(java.util.Collection<?> values)
Creates a comma separated string made up of the given collection. Each value is surrounded by "`", and the values are sorted to make it easier to write tests against the messages.- Parameters:
values
- Values to turn into a comma separated list.- Returns:
- Returns the string.
-
tickedList
public static java.lang.String tickedList(java.util.Collection<?> values)
Creates a comma separated string made up of the given collection. Each value is surrounded by "`", and the values are sorted to make it easier to write tests against the messages.- Parameters:
values
- Values to turn into a comma separated list.- Returns:
- Returns the string.
-
tickedList
public static java.lang.String tickedList(java.util.stream.Stream<?> values)
-
-