public static final class DtedModelDecoder.Options.Builder extends Object implements AutoCloseable
Constructor and Description |
---|
Builder(DtedModelDecoder.Options.Builder other) |
Modifier and Type | Method and Description |
---|---|
DtedModelDecoder.Options |
build()
Builds the options for the DTED model decoder.
|
void |
close() |
protected void |
finalize() |
DtedModelDecoder.Options.Builder |
maxLevel(long maxLevel)
Sets the maximum DTED level that is decoded.
|
DtedModelDecoder.Options.Builder |
minLevel(long minLevel)
Sets the minimum DTED level that is decoded.
|
public Builder(@NotNull DtedModelDecoder.Options.Builder other)
public void close()
close
in interface AutoCloseable
@NotNull public DtedModelDecoder.Options.Builder minLevel(long minLevel)
The minimum DTED level cannot be greater than the maximum DTED level. This option is applicable only when decoding a DTED folder or a DMED file. If a single DTED file is decoded, this option is ignored.
Calling this function is optional. The default is 0.
minLevel
- the minimum DTED level that is decoded.@NotNull public DtedModelDecoder.Options.Builder maxLevel(long maxLevel)
The maximum DTED level cannot be less than the minimum DTED level. This option is applicable only when decoding a DTED folder or a DMED file. If a single DTED file is decoded, this option is ignored.
Calling this function is optional. The default is 2.
maxLevel
- the maximum DTED level that is decoded.@NotNull public DtedModelDecoder.Options build() throws IllegalStateException
IllegalStateException
- If minLevel and maxLevel do not meet their respective constraints.