@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof StringPrefixPartitionResolver)) {
      return false;
    }
    StringPrefixPartitionResolver other = (StringPrefixPartitionResolver) o;
    return other.getName().equals(getName()) && other.getDelimiter().equals(getDelimiter());
  }
Returns the prefix of the String key that precedes the first "|" in the key.

@throws ClassCastException if the key is not an instance of String
@throws IllegalArgumentException if the key does not contain at least one "|".
geode-core/src/main/java/org/apache/geode/cache/util/StringPrefixPartitionResolver.java