public enum ResizeFactor extends Enum<ResizeFactor>
Enum Constant and Description |
---|
X1
Do not resize.
|
X2
Resize factor is 2.
|
X4
Resize factor is 4.
|
X8
Resize factor is 8.
|
Modifier and Type | Method and Description |
---|---|
static ResizeFactor |
getRF(int lg)
Returns the Resize Factor given the Log-base 2 of the Resize Factor
|
int |
getValue()
Returns the Resize Factor
|
int |
lg()
Returns the Log-base 2 of the Resize Factor
|
static ResizeFactor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResizeFactor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResizeFactor X1
public static final ResizeFactor X2
public static final ResizeFactor X4
public static final ResizeFactor X8
public static ResizeFactor[] values()
for (ResizeFactor c : ResizeFactor.values()) System.out.println(c);
public static ResizeFactor 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 nullpublic int lg()
public static ResizeFactor getRF(int lg)
lg
- a value between zero and 3, inclusive.public int getValue()
Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.