Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widget-common-event@113520 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a095fc4ddd
commit
5a9a916212
|
@ -1,64 +0,0 @@
|
|||
package org.gcube.portlets.user.td.widgetcommonevent.shared.geospatial;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author "Giancarlo Panichi" <a
|
||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public enum CSquareDownscaleResolution {
|
||||
TEN("10"),
|
||||
FIVE("5"),
|
||||
ONE("1"),
|
||||
HALF_DEGREE("0.5"),
|
||||
TENTH_DEGREE("0.1"),
|
||||
HALF_TENTH("0.05"),
|
||||
CENTH_DEGREE("0.01"),
|
||||
HALF_CENTH("0.005"),
|
||||
MILLI_DEGREE("0.001"),
|
||||
HALF_MILLI("0.0005");
|
||||
|
||||
/**
|
||||
* @param text
|
||||
*/
|
||||
private CSquareDownscaleResolution(final String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
private final String id;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public static List<CSquareDownscaleResolution> getList(){
|
||||
return Arrays.asList(values());
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static CSquareDownscaleResolution getGeospatialCoordinatesTypeFromId(
|
||||
String id) {
|
||||
for(CSquareDownscaleResolution v:values()){
|
||||
if (id.compareTo(v.id) == 0) {
|
||||
return v;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getLabel(){
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue