1 /*
2 * Copyright (C) 2010, 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.events;
12
13 /**
14 * Describes a change to one or more references of a repository.
15 */
16 public class RefsChangedEvent extends RepositoryEvent<RefsChangedListener> {
17 /** {@inheritDoc} */
18 @Override
19 public Class<RefsChangedListener> getListenerType() {
20 return RefsChangedListener.class;
21 }
22
23 /** {@inheritDoc} */
24 @Override
25 public void dispatch(RefsChangedListener listener) {
26 listener.onRefsChanged(this);
27 }
28 }