1 /* 2 * Copyright (C) 2008, Florian Köberle <florianskarten@web.de> 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.fnmatch; 12 13 import java.util.List; 14 15 final class LastHead implements Head { 16 static final Head INSTANCE = new LastHead(); 17 18 /** 19 * Don't call this constructor, use {@link #INSTANCE} 20 */ 21 private LastHead() { 22 // defined because of javadoc and visibility modifier. 23 } 24 25 /** {@inheritDoc} */ 26 @Override 27 public List<Head> getNextHeads(char c) { 28 return FileNameMatcher.EMPTY_HEAD_LIST; 29 } 30 31 }