Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/FastAnnotations.java @ 3325:96bd63281af7
Added Override annotation.
flys-backend/trunk@4637 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 11 Jun 2012 13:20:55 +0000 |
parents | 290189f07809 |
children | 2ae732e2c65c |
comparison
equal
deleted
inserted
replaced
3324:290189f07809 | 3325:96bd63281af7 |
---|---|
140 | 140 |
141 boolean accept(Annotation annotation); | 141 boolean accept(Annotation annotation); |
142 | 142 |
143 } // interface Filter | 143 } // interface Filter |
144 | 144 |
145 public static class NameFilter implements Filter{ | 145 public static class NameFilter implements Filter { |
146 | 146 |
147 private String name; | 147 private String name; |
148 | 148 |
149 public NameFilter (String name) { | 149 public NameFilter(String name) { |
150 this.name = name; | 150 this.name = name; |
151 } | 151 } |
152 | 152 |
153 public boolean accept (Annotation annotation) { | 153 @Override |
154 public boolean accept(Annotation annotation) { | |
154 return annotation.getName().contains(name); | 155 return annotation.getName().contains(name); |
155 } | 156 } |
156 } | 157 } // class NameFilter |
157 | 158 |
158 public static final Filter ALL = new Filter() { | 159 public static final Filter ALL = new Filter() { |
159 @Override | 160 @Override |
160 public boolean accept(Annotation annotation) { | 161 public boolean accept(Annotation annotation) { |
161 return true; | 162 return true; |