Class StringUtils

java.lang.Object
it.poliba.sisinflab.tinyme.util.StringUtils

public final class StringUtils
extends Object
Static String factory methods.
  • Method Details

    • stringForIRI

      public static String stringForIRI​(IRI iri)
      Returns a readable representation of the specified IRI.
      Parameters:
      iri - IRI.
      Returns:
      String representation.
    • stringForEntity

      public static String stringForEntity​(OWLEntity entity)
      Returns a readable representation of the specified entity.
      Parameters:
      entity - Entity.
      Returns:
      String representation.
    • stringForAtomicConcept

      public static String stringForAtomicConcept​(AtomicConcept concept)
      Returns a readable representation of the specified atomic concept.
      Parameters:
      concept - Atomic concept.
      Returns:
      String representation.
    • stringForNegatedConcept

      public static String stringForNegatedConcept​(AtomicConcept concept)
      Returns a readable representation of the specified negated concept.
      Parameters:
      concept - Negated concept.
      Returns:
      String representation.
    • stringForCardinalityRole

      public static String stringForCardinalityRole​(CardinalityRole role)
      Returns a readable representation of the specified cardinality role.
      Parameters:
      role - Cardinality role.
      Returns:
      String representation.
    • stringForGreaterThanRole

      public static String stringForGreaterThanRole​(CardinalityRole role)
      Returns a readable representation of the specified minimum cardinality restriction.
      Parameters:
      role - Cardinality restriction.
      Returns:
      String representation.
    • stringForLessThanRole

      public static String stringForLessThanRole​(CardinalityRole role)
      Returns a readable representation of the specified maximum cardinality restriction.
      Parameters:
      role - Cardinality restriction.
      Returns:
      String representation.
    • stringForUniversalRole

      public static String stringForUniversalRole​(UniversalRole role)
      Returns a readable representation of the specified value restriction.
      Parameters:
      role - Value restriction.
      Returns:
      String representation.
    • stringForSemanticDescription

      public static String stringForSemanticDescription​(SemanticDescription desc)
      Returns a readable representation of the specified semantic description.
      Parameters:
      desc - Semantic description.
      Returns:
      String representation.
    • stringForAbduction

      public static String stringForAbduction​(Abduction abduction)
      Returns a readable representation of the specified abduction result.
      Parameters:
      abduction - Abduction result.
      Returns:
      String representation.
    • stringForBonus

      public static String stringForBonus​(Bonus bonus)
      Returns a readable representation of the specified bonus result.
      Parameters:
      bonus - Bonus result.
      Returns:
      String representation.
    • stringForContraction

      public static String stringForContraction​(Contraction contraction)
      Returns a readable representation of the specified contraction result.
      Parameters:
      contraction - Contraction result.
      Returns:
      String representation.
    • stringForComposition

      public static String stringForComposition​(Composition composition)
      Returns a readable representation of the specified covering result.
      Parameters:
      composition - Covering result.
      Returns:
      String representation.
    • millisFromNanos

      public static String millisFromNanos​(long elapsedNanos)
      Returns a readable representation of the specified time interval (in nanoseconds).
      Parameters:
      elapsedNanos - Elapsed nanoseconds.
      Returns:
      String representation.
    • normalize

      public static String normalize​(String string)
      Returns the Unicode canonical decomposition (NFD) of the specified string.
      Parameters:
      string - String to normalize.
      Returns:
      Normalized string.
      See Also:
      Unicode normalization
    • join

      public 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.
      Parameters:
      delimiter - Delimiter.
      strings - Strings to join.
      Returns:
      A new String that is composed of the elements separated by the delimiter.
    • naturalComparator

      public static Comparator<Object> naturalComparator()
      Returns a very basic "natural" order comparator.
      Returns:
      Comparator instance.