public enum LookupPolicy extends Enum<LookupPolicy>
| Enum Constant and Description |
|---|
LATEST
among reachable tags, keep the one having the most recent date.
|
MAX
gather all reachable tags and take the greatest one.
|
NEAREST
among reachable tags, keep the one having the smallest depth from HEAD.
|
| Modifier and Type | Method and Description |
|---|---|
static LookupPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LookupPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LookupPolicy MAX
public static final LookupPolicy LATEST
public static final LookupPolicy NEAREST
public static LookupPolicy[] values()
for (LookupPolicy c : LookupPolicy.values()) System.out.println(c);
public static LookupPolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016–2021 Matthieu Brouillard. All rights reserved.