<commit_before>/**
 * Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.platform.source.id;

import java.util.Set;

import com.google.common.collect.ImmutableSet;

/**
 * Provides uniform access to objects that can supply a standard identifier.
 * <p>
 * This interface makes no guarantees about the thread-safety of implementations.
 * However, wherever possible calls to this method should be thread-safe.
 */
public interface StandardIdentifiable {

  /**
   * Gets the standard identifier for the instance.
   *
   * @return the identifier
   */
  public abstract StandardId getStandardId();

  /**
   * Gets secondary identifiers for the instance.
   * <p>
   * The default implementation will return an immutable empty set.
   * This can be overridden to provide a set of ids. Note that the
   * set should not contain the primary id.
   *
   * @return the set of secondary ids
   */
  public default Set<StandardId> getSecondaryIds() {
    return ImmutableSet.of();
  }
<commit_msg>PLT-536 - Alter how secondary ids are held<commit_after>/**
 * Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.platform.source.id;

/**
 * Provides uniform access to objects that can supply a standard identifier.
 * <p>
 * This interface makes no guarantees about the thread-safety of implementations.
 * However, wherever possible calls to this method should be thread-safe.
 */
public interface StandardIdentifiable {

  /**
   * Gets the standard identifier for the instance.
   *
   * @return the identifier
   */
  public abstract StandardId getStandardId();

{'fraction_non_alphanumeric': 0.08120386144236229, 'fraction_numerical': 0.006246450880181715, 'mean_word_length': 3.5295629820051415, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6082354', 'n_tokens_mistral': 478, 'n_tokens_neox': 455, 'n_words': 198}