F
- The Feature child typepublic abstract class Feature<F extends Feature> extends RemoveObservable implements java.lang.Comparable<Feature>
Copyright (c) 2017 Nexusgeographics All rights reserved.
Constructor and Description |
---|
Feature(android.content.Context context,
java.lang.String name)
Instantiates a new Feature.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Feature feature) |
boolean |
equals(java.lang.Object o) |
android.content.Context |
getContext()
Gets context.
|
long |
getId()
Gets id.
|
java.lang.Object |
getInfo()
Gets feature info
|
java.lang.String |
getName()
Gets feature name.
|
int |
hashCode() |
boolean |
isCreated()
Checks if is created.
|
void |
remove()
Remove.
|
F |
setInfo(java.lang.Object info)
Sets feature info
|
java.lang.String |
toString() |
addObserver, removeObserver
public Feature(@NonNull android.content.Context context, @NonNull java.lang.String name)
context
- the contextname
- the feature namepublic java.lang.String toString()
toString
in class java.lang.Object
public android.content.Context getContext()
public java.lang.String getName()
@Nullable public java.lang.Object getInfo()
public F setInfo(@Nullable java.lang.Object info)
info
- The infopublic void remove()
public boolean isCreated()
public int compareTo(Feature feature)
compareTo
in interface java.lang.Comparable<Feature>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public long getId()