diff --git a/app/src/main/java/com/example/cosmosclient/entities/AreaInformation.java b/app/src/main/java/com/example/cosmosclient/entities/AreaInformation.java index 4a581ac..112590a 100644 --- a/app/src/main/java/com/example/cosmosclient/entities/AreaInformation.java +++ b/app/src/main/java/com/example/cosmosclient/entities/AreaInformation.java @@ -9,6 +9,7 @@ private HashMap> feature = new HashMap<>(); private Time lastUpdated; + //location public void setLocation(Location location){ this.location = location; } @@ -16,13 +17,28 @@ return this.location; } + //feature public void setFeature(HashMap> feature) { this.feature = feature; } + public void putFeature(int index,ArrayList fea){ + feature.put(index,fea); + } public HashMap> getFeature() { return feature; } + public int getFeatureCount(){ + return feature.size(); + } + public void clearFeature(){ + feature.clear(); + } + public void removeFeature(int index){ + feature.remove(index); + } + + //lastUpdated public void setLastUpdated(Time lastUpdated) { this.lastUpdated = lastUpdated; }