Class MatchingRuleImpl.IndexId

java.lang.Object
org.forgerock.opendj.ldap.schema.MatchingRuleImpl.IndexId
Enclosing interface:
MatchingRuleImpl

public static final class MatchingRuleImpl.IndexId extends Object
Represents an index ID associated with an indexer.
  • Method Details

    • indexId

      public static MatchingRuleImpl.IndexId indexId(String name, int version)
      Factory method for creating an index ID.
      Parameters:
      name - The name of the index, which is usually the name of the matching rule.
      version - The version of the index ID.
      Returns:
      the index ID.
    • withPrefixAndSuffix

      public MatchingRuleImpl.IndexId withPrefixAndSuffix(String prefix, String suffix)
      Returns a new index ID with the provided prefix and suffix.
      Parameters:
      prefix - The prefix to add to the index ID.
      suffix - The suffix to add to the index ID.
      Returns:
      the new index ID.
    • withPrefix

      public MatchingRuleImpl.IndexId withPrefix(String prefix)
      Returns a new index ID with the provided prefix.
      Parameters:
      prefix - The prefix to add to the index ID.
      Returns:
      the new index ID.
    • withSuffix

      public MatchingRuleImpl.IndexId withSuffix(String suffix)
      Returns a new index ID with the provided suffix.
      Parameters:
      suffix - The suffix to add to the index ID.
      Returns:
      the new index ID.
    • name

      public String name()
      The name of the index, which is usually the name of the matching rule.
      Returns:
      The name of the index, which is usually the name of the matching rule
    • version

      public int version()
      The version of the index ID.
      Returns:
      The version of the index ID
    • toString

      public String toString()
      Returns the fullname of this index ID. The fullname is:
      • the name of the index (usually the name of the matching rule) if the version number is 1
      • the concatenation of 'name' + "V" + 'the version number' if the version number is greater than 1
      Overrides:
      toString in class Object
      Returns:
      the name of this index ID.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object