give me a sec i got you
edit:
public enum Location {
//your pre-definding the value of whatever you need.
AREA_ONE(new Area(3092, 3246, 3095, 3240)),
AREA_TWO (new Area(3215, 9623, 3219, 9620)),
AREA_WHATEVER_YOU WANT (new Area(3207, 3220, 3210, 3216)),
;
//these are the private fields you pre-definded
private Area area;
//constructor add what values you need to pre-define
private Location(Area area){
this.area = area;
}
//these are simple getter methods.
//setter method arent allowed because the values are pre-fined so they are basically static.
public Area getArea(){
return this.area;
}
}
example of an enum. You pre-define the value and use them like so
Location.AREA_ONE give you the variable from location and then your allowes to use the getter methods.
Location.values() give your an array of all the variables in the enum
You can also use an enum as a type. For oop ideas