public enum IndexFormatVersion extends java.lang.Enum<IndexFormatVersion>
Enum Constant and Description |
---|
V1
Index confirming to Oak version upto 1.0.8
|
V2
Index confirming to Oak version upto 1.0.9
|
Modifier and Type | Method and Description |
---|---|
static IndexFormatVersion |
getDefault() |
int |
getVersion() |
static IndexFormatVersion |
getVersion(int version) |
boolean |
isAtLeast(IndexFormatVersion version)
Returns
true if this version is at least as high as the
given version . |
static IndexFormatVersion |
max(IndexFormatVersion o1,
IndexFormatVersion o2) |
static IndexFormatVersion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IndexFormatVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IndexFormatVersion V1
public static final IndexFormatVersion V2
public static IndexFormatVersion[] values()
for (IndexFormatVersion c : IndexFormatVersion.values()) System.out.println(c);
public static IndexFormatVersion valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isAtLeast(IndexFormatVersion version)
true
if this version is at least as high as the
given version
.version
- the other version to compare.true
if this version is at least as high as the
provided; false
otherwise.public int getVersion()
public static IndexFormatVersion getVersion(int version)
public static IndexFormatVersion getDefault()
public static IndexFormatVersion max(IndexFormatVersion o1, IndexFormatVersion o2)
Copyright © 2010 - 2020 Adobe. All Rights Reserved