Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

ObjectIdSet.java 902B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (C) 2015, Google Inc. and others
  3. *
  4. * This program and the accompanying materials are made available under the
  5. * terms of the Eclipse Distribution License v. 1.0 which is available at
  6. * https://www.eclipse.org/org/documents/edl-v10.php.
  7. *
  8. * SPDX-License-Identifier: BSD-3-Clause
  9. */
  10. package org.eclipse.jgit.lib;
  11. /**
  12. * Simple set of ObjectIds.
  13. * <p>
  14. * Usually backed by a read-only data structure such as
  15. * {@link org.eclipse.jgit.internal.storage.file.PackIndex}. Mutable types like
  16. * {@link org.eclipse.jgit.lib.ObjectIdOwnerMap} also implement the interface by
  17. * checking keys.
  18. *
  19. * @since 4.2
  20. */
  21. public interface ObjectIdSet {
  22. /**
  23. * Returns true if the objectId is contained within the collection.
  24. *
  25. * @param objectId
  26. * the objectId to find
  27. * @return whether the collection contains the objectId.
  28. */
  29. boolean contains(AnyObjectId objectId);
  30. }