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
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
compare
(long fid1, long fid2) static long
fromString
(String s) static long
id
(long id) static boolean
isNode
(long fid) static boolean
isRelation
(long fid) static boolean
isWay
(long fid) static long
of
(int type, long id) static long
of
(FeatureType type, long id) static long
ofNode
(long id) static long
ofRelation
(long id) static long
ofWay
(long id) static void
sort
(long[] fids) static String
toString
(long fid) static FeatureType
type
(long id) static int
typeCode
(long id) static String
typeToString
(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
-