Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-lib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-lib
Commits
646742a1
Commit
646742a1
authored
8 months ago
by
Powers, Peter M.
Browse files
Options
Downloads
Patches
Plain Diff
removed copy of immutable set
parent
fc4b45c8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!417
removed copy of immutable set
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/gov/usgs/earthquake/nshmp/calc/CalcConfig.java
+10
-9
10 additions, 9 deletions
src/main/java/gov/usgs/earthquake/nshmp/calc/CalcConfig.java
with
10 additions
and
9 deletions
src/main/java/gov/usgs/earthquake/nshmp/calc/CalcConfig.java
+
10
−
9
View file @
646742a1
...
@@ -22,8 +22,9 @@ import java.nio.charset.StandardCharsets;
...
@@ -22,8 +22,9 @@ import java.nio.charset.StandardCharsets;
import
java.nio.file.Files
;
import
java.nio.file.Files
;
import
java.nio.file.Path
;
import
java.nio.file.Path
;
import
java.nio.file.Paths
;
import
java.nio.file.Paths
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.
Collections
;
import
java.util.
EnumSet
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.NavigableMap
;
import
java.util.NavigableMap
;
...
@@ -228,14 +229,14 @@ public final class CalcConfig {
...
@@ -228,14 +229,14 @@ public final class CalcConfig {
* {@code distanceFilterUpdate} flag is registered when a model loads and at
* {@code distanceFilterUpdate} flag is registered when a model loads and at
* this time cannot be changed with user supplied config.
* this time cannot be changed with user supplied config.
*
*
* <p><b>Default:</b>
fals
e
* <p><b>Default:</b>
tru
e
*/
*/
public
final
boolean
distanceFilterUpdate
;
public
final
boolean
distanceFilterUpdate
;
/**
/**
* Whether to apply updated grid focal mechanism application.
* Whether to apply updated grid focal mechanism application.
*
*
* <p><b>Default:</b>
fals
e
* <p><b>Default:</b>
tru
e
*/
*/
public
final
boolean
gridFocalMechUpdate
;
public
final
boolean
gridFocalMechUpdate
;
...
@@ -779,10 +780,10 @@ public final class CalcConfig {
...
@@ -779,10 +780,10 @@ public final class CalcConfig {
/**
/**
* The different {@linkplain DataType types} of data to save. Note that
* The different {@linkplain DataType types} of data to save. Note that
* {@link DataType#TOTAL}
will <i>always</i> be included in this set,
* {@link DataType#TOTAL}
and {@link DataType#MAP} will <i>always</i> be
* regardless of any user settings.
*
included in this set,
regardless of any user settings.
*
*
* <p><b>Default:</b> [{@link DataType#TOTAL}]
* <p><b>Default:</b> [{@link DataType#TOTAL}
, {@link DataType#MAP}
]
*/
*/
public
final
Set
<
DataType
>
dataTypes
;
public
final
Set
<
DataType
>
dataTypes
;
...
@@ -796,7 +797,7 @@ public final class CalcConfig {
...
@@ -796,7 +797,7 @@ public final class CalcConfig {
private
Output
(
Builder
b
)
{
private
Output
(
Builder
b
)
{
this
.
directory
=
b
.
directory
;
this
.
directory
=
b
.
directory
;
this
.
dataTypes
=
Collections
.
unmodifiableSet
(
b
.
dataTypes
)
;
this
.
dataTypes
=
b
.
dataTypes
;
this
.
returnPeriods
=
List
.
copyOf
(
b
.
returnPeriods
);
this
.
returnPeriods
=
List
.
copyOf
(
b
.
returnPeriods
);
}
}
...
@@ -815,8 +816,8 @@ public final class CalcConfig {
...
@@ -815,8 +816,8 @@ public final class CalcConfig {
void
copy
(
Output
that
)
{
void
copy
(
Output
that
)
{
this
.
directory
=
that
.
directory
;
this
.
directory
=
that
.
directory
;
this
.
dataTypes
=
that
.
dataTypes
;
this
.
dataTypes
=
EnumSet
.
copyOf
(
that
.
dataTypes
)
;
this
.
returnPeriods
=
that
.
returnPeriods
;
this
.
returnPeriods
=
new
ArrayList
<>(
that
.
returnPeriods
)
;
}
}
void
extend
(
Builder
that
)
{
void
extend
(
Builder
that
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment