Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationMainValuesWFacet.java @ 9302:b40fbca03024
Using super constructor
author | gernotbelger |
---|---|
date | Wed, 25 Jul 2018 16:14:38 +0200 |
parents | 83ebeb620b5a |
children | f8308db94634 |
comparison
equal
deleted
inserted
replaced
9298:0b1a51b0c42e | 9302:b40fbca03024 |
---|---|
31 /** Own log. */ | 31 /** Own log. */ |
32 private static Logger log = Logger.getLogger(FloodDurationMainValuesWFacet.class); | 32 private static Logger log = Logger.getLogger(FloodDurationMainValuesWFacet.class); |
33 | 33 |
34 /** Trivial Constructor. */ | 34 /** Trivial Constructor. */ |
35 public FloodDurationMainValuesWFacet(final String name, final String description) { | 35 public FloodDurationMainValuesWFacet(final String name, final String description) { |
36 this.description = description; | 36 super(0, name, description); |
37 this.name = name; | |
38 this.index = 0; | |
39 } | 37 } |
40 | 38 |
41 /** | 39 /** |
42 * Returns the data this facet provides. | 40 * Returns the data this facet provides. |
43 */ | 41 */ |
58 data.getResults().get(0)); | 56 data.getResults().get(0)); |
59 | 57 |
60 return new RiverAnnotation(this.description, annotations); | 58 return new RiverAnnotation(this.description, annotations); |
61 } | 59 } |
62 | 60 |
63 | |
64 /** | 61 /** |
65 * Create a deep copy of this Facet. | 62 * Create a deep copy of this Facet. |
66 * @return a deep copy. | 63 * @return a deep copy. |
67 */ | 64 */ |
68 @Override | 65 @Override |
70 final FloodDurationMainValuesWFacet copy = new FloodDurationMainValuesWFacet(this.name, this.description); | 67 final FloodDurationMainValuesWFacet copy = new FloodDurationMainValuesWFacet(this.name, this.description); |
71 copy.set(this); | 68 copy.set(this); |
72 return copy; | 69 return copy; |
73 } | 70 } |
74 } | 71 } |
75 |