Package it.poliba.sisinflab.tinyme.util
Class StringUtils
java.lang.Object
it.poliba.sisinflab.tinyme.util.StringUtils
public final class StringUtils extends Object
Static
String
factory methods.-
Method Summary
Modifier and Type Method Description static String
join(String delimiter, List<String> strings)
Returns a new String composed of copies of the String elements joined together with the specified delimiter.static String
millisFromNanos(long elapsedNanos)
Returns a readable representation of the specified time interval (in nanoseconds).static Comparator<Object>
naturalComparator()
Returns a very basic "natural" order comparator.static String
normalize(String string)
Returns the Unicode canonical decomposition (NFD) of the specified string.static String
stringForAbduction(Abduction abduction)
Returns a readable representation of the specified abduction result.static String
stringForAtomicConcept(AtomicConcept concept)
Returns a readable representation of the specified atomic concept.static String
stringForBonus(Bonus bonus)
Returns a readable representation of the specified bonus result.static String
stringForCardinalityRole(CardinalityRole role)
Returns a readable representation of the specified cardinality role.static String
stringForComposition(Composition composition)
Returns a readable representation of the specified covering result.static String
stringForContraction(Contraction contraction)
Returns a readable representation of the specified contraction result.static String
stringForEntity(OWLEntity entity)
Returns a readable representation of the specified entity.static String
stringForGreaterThanRole(CardinalityRole role)
Returns a readable representation of the specified minimum cardinality restriction.static String
stringForIRI(IRI iri)
Returns a readable representation of the specified IRI.static String
stringForLessThanRole(CardinalityRole role)
Returns a readable representation of the specified maximum cardinality restriction.static String
stringForNegatedConcept(AtomicConcept concept)
Returns a readable representation of the specified negated concept.static String
stringForSemanticDescription(SemanticDescription desc)
Returns a readable representation of the specified semantic description.static String
stringForUniversalRole(UniversalRole role)
Returns a readable representation of the specified value restriction.
-
Method Details
-
stringForIRI
Returns a readable representation of the specified IRI.- Parameters:
iri
- IRI.- Returns:
- String representation.
-
stringForEntity
Returns a readable representation of the specified entity.- Parameters:
entity
- Entity.- Returns:
- String representation.
-
stringForAtomicConcept
Returns a readable representation of the specified atomic concept.- Parameters:
concept
- Atomic concept.- Returns:
- String representation.
-
stringForNegatedConcept
Returns a readable representation of the specified negated concept.- Parameters:
concept
- Negated concept.- Returns:
- String representation.
-
stringForCardinalityRole
Returns a readable representation of the specified cardinality role.- Parameters:
role
- Cardinality role.- Returns:
- String representation.
-
stringForGreaterThanRole
Returns a readable representation of the specified minimum cardinality restriction.- Parameters:
role
- Cardinality restriction.- Returns:
- String representation.
-
stringForLessThanRole
Returns a readable representation of the specified maximum cardinality restriction.- Parameters:
role
- Cardinality restriction.- Returns:
- String representation.
-
stringForUniversalRole
Returns a readable representation of the specified value restriction.- Parameters:
role
- Value restriction.- Returns:
- String representation.
-
stringForSemanticDescription
Returns a readable representation of the specified semantic description.- Parameters:
desc
- Semantic description.- Returns:
- String representation.
-
stringForAbduction
Returns a readable representation of the specified abduction result.- Parameters:
abduction
- Abduction result.- Returns:
- String representation.
-
stringForBonus
Returns a readable representation of the specified bonus result.- Parameters:
bonus
- Bonus result.- Returns:
- String representation.
-
stringForContraction
Returns a readable representation of the specified contraction result.- Parameters:
contraction
- Contraction result.- Returns:
- String representation.
-
stringForComposition
Returns a readable representation of the specified covering result.- Parameters:
composition
- Covering result.- Returns:
- String representation.
-
millisFromNanos
Returns a readable representation of the specified time interval (in nanoseconds).- Parameters:
elapsedNanos
- Elapsed nanoseconds.- Returns:
- String representation.
-
normalize
Returns the Unicode canonical decomposition (NFD) of the specified string.- Parameters:
string
- String to normalize.- Returns:
- Normalized string.
- See Also:
- Unicode normalization
-
join
Returns a new String composed of copies of the String elements joined together with the specified delimiter.- Parameters:
delimiter
- Delimiter.strings
- Strings to join.- Returns:
- A new String that is composed of the elements separated by the delimiter.
-
naturalComparator
Returns a very basic "natural" order comparator.- Returns:
- Comparator instance.
-