@Override public boolean contains(long... key) { return tree.contains(key); }
/** * @param key key * @return true if the key exists in the tree */ public boolean contains(double ... key) { long[] lKey = new long[key.length]; pre.pre(key, lKey); return pht.contains(lKey); }
/** * Check whether an entry with the specified coordinates exists in the tree. * @param lower lower left corner * @param upper upper right corner * @return true if the entry was found * * @see PhTree#contains(long...) */ public boolean contains(long[] lower, long[] upper) { long[] lVal = new long[lower.length*2]; pre.pre(lower, upper, lVal); return pht.contains(lVal); }
/** * Check whether an entry with the specified coordinates exists in the tree. * @param lower lower left corner * @param upper upper right corner * @return true if the entry was found * * @see PhTree#contains(long...) */ public boolean contains(double[] lower, double[] upper) { long[] lVal = new long[lower.length*2]; pre.pre(lower, upper, lVal); return pht.contains(lVal); }