Package com.geodesk.feature
Class FeatureId
java.lang.Object
com.geodesk.feature.FeatureId
Methods for creating IDs that are unique across feature types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcompare(long fid1, long fid2) static longfromString(String s) static longid(long id) static booleanisNode(long fid) static booleanisRelation(long fid) static booleanisWay(long fid) static longof(int type, long id) static longof(FeatureType type, long id) static longofNode(long id) static longofRelation(long id) static longofWay(long id) static voidsort(long[] fids) static StringtoString(long fid) static FeatureTypetype(long id) static inttypeCode(long id) static StringtypeToString(long fid)
-
Constructor Details
-
FeatureId
public FeatureId()
-
-
Method Details
-
of
-
of
public static long of(int type, long id) -
ofNode
public static long ofNode(long id) -
ofWay
public static long ofWay(long id) -
ofRelation
public static long ofRelation(long id) -
id
public static long id(long id) -
type
-
typeCode
public static int typeCode(long id) -
fromString
-
compare
public static int compare(long fid1, long fid2) -
sort
public static void sort(long[] fids) -
typeToString
-
isNode
public static boolean isNode(long fid) -
isWay
public static boolean isWay(long fid) -
isRelation
public static boolean isRelation(long fid) -
toString
-