-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Service Provider for applying enhancements #1369
Service Provider for applying enhancements #1369
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good, just a few minor style issues!
cdm/core/src/main/java/ucar/unidata/io/spi/EnhancementProvider.java
Outdated
Show resolved
Hide resolved
cdm/core/src/main/java/ucar/nc2/filter/EnhancementProvider.java
Outdated
Show resolved
Hide resolved
cdm/core/src/main/java/ucar/nc2/filter/EnhancementProvider.java
Outdated
Show resolved
Hide resolved
cdm/core/src/main/java/ucar/nc2/filter/EnhancementProvider.java
Outdated
Show resolved
Hide resolved
cdm/core/src/main/java/ucar/nc2/filter/EnhancementProvider.java
Outdated
Show resolved
Hide resolved
|
||
boolean appliesTo(Enhance enhance, AttributeContainer attributes, DataType dt); | ||
|
||
Enhancement Create(VariableDS var); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should start with lower case for method names in java, so let's make it create
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
7dd1467
to
7ee573e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great!
|
||
boolean appliesTo(Enhance enhance, AttributeContainer attributes, DataType dt); | ||
|
||
Enhancement Create(VariableDS var); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
@@ -116,4 +125,21 @@ public static int[] stringToIntArray(String str) { | |||
return intArray; | |||
} | |||
|
|||
public static class Provider implements EnhancementProvider { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you make another commit, remove these spaces just to keep things clean
@@ -290,5 +290,8 @@ public int getId() { | |||
public Filter create(Map<String, Object> properties) { | |||
return new ScaleOffset(properties); | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to commit changes to this file at all it seems :)
Description of Changes
PR Checklist
until ready for review