You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RefsChangedEvent.java 741B

12345678910111213141516171819202122232425262728
  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. package org.eclipse.jgit.events;
  11. /**
  12. * Describes a change to one or more references of a repository.
  13. */
  14. public class RefsChangedEvent extends RepositoryEvent<RefsChangedListener> {
  15. /** {@inheritDoc} */
  16. @Override
  17. public Class<RefsChangedListener> getListenerType() {
  18. return RefsChangedListener.class;
  19. }
  20. /** {@inheritDoc} */
  21. @Override
  22. public void dispatch(RefsChangedListener listener) {
  23. listener.onRefsChanged(this);
  24. }
  25. }