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
11 package org.eclipse.jgit.lib;
12
13 /**
14 * Simple set of ObjectIds.
15 * <p>
16 * Usually backed by a read-only data structure such as
17 * {@link org.eclipse.jgit.internal.storage.file.PackIndex}. Mutable types like
18 * {@link org.eclipse.jgit.lib.ObjectIdOwnerMap} also implement the interface by
19 * checking keys.
20 *
21 * @since 4.2
22 */
23 public interface ObjectIdSet {
24 /**
25 * Returns true if the objectId is contained within the collection.
26 *
27 * @param objectId
28 * the objectId to find
29 * @return whether the collection contains the objectId.
30 */
31 boolean contains(AnyObjectId objectId);
32 }