/** * @throws ClassCastException {@inheritDoc} * @throws NullPointerException if {@code toKey} is null * @throws IllegalArgumentException {@inheritDoc} */ public NavigableMap headMap(Object toKey, boolean inclusive) { if (toKey == null) throw new NullPointerException(); return new SubMap (this, null, false, toKey, inclusive, false); }
/** * @throws ClassCastException {@inheritDoc} * @throws NullPointerException if {@code fromKey} is null * @throws IllegalArgumentException {@inheritDoc} */ public NavigableMap tailMap(Object fromKey, boolean inclusive) { if (fromKey == null) throw new NullPointerException(); return new SubMap (this, fromKey, inclusive, null, false, false); }
/** * @throws ClassCastException {@inheritDoc} * @throws NullPointerException if {@code fromKey} is null * @throws IllegalArgumentException {@inheritDoc} */ public NavigableMap tailMap(Object fromKey, boolean inclusive) { if (fromKey == null) throw new NullPointerException(); return new SubMap (this, fromKey, inclusive, null, false, false); }
return new SubMap(m, fromKey, fromInclusive, toKey, toInclusive, isDescending);
return new SubMap(m, fromKey, fromInclusive, toKey, toInclusive, isDescending);
return new SubMap(m, fromKey, fromInclusive, toKey, toInclusive, isDescending);
/** * @throws ClassCastException {@inheritDoc} * @throws NullPointerException if {@code fromKey} or {@code toKey} is null * @throws IllegalArgumentException {@inheritDoc} */ public NavigableMap subMap(Object fromKey, boolean fromInclusive, Object toKey, boolean toInclusive) { if (fromKey == null || toKey == null) throw new NullPointerException(); return new SubMap (this, fromKey, fromInclusive, toKey, toInclusive, false); }
public NavigableMap descendingMap() { return new SubMap(m, lo, loInclusive, hi, hiInclusive, !isDescending); }
/** * @throws ClassCastException {@inheritDoc} * @throws NullPointerException if {@code fromKey} or {@code toKey} is null * @throws IllegalArgumentException {@inheritDoc} */ public NavigableMap subMap(Object fromKey, boolean fromInclusive, Object toKey, boolean toInclusive) { if (fromKey == null || toKey == null) throw new NullPointerException(); return new SubMap (this, fromKey, fromInclusive, toKey, toInclusive, false); }
public NavigableMap descendingMap() { return new SubMap(m, lo, loInclusive, hi, hiInclusive, !isDescending); }
/** * @throws ClassCastException {@inheritDoc} * @throws NullPointerException if {@code fromKey} or {@code toKey} is null * @throws IllegalArgumentException {@inheritDoc} */ public NavigableMap subMap(Object fromKey, boolean fromInclusive, Object toKey, boolean toInclusive) { if (fromKey == null || toKey == null) throw new NullPointerException(); return new SubMap (this, fromKey, fromInclusive, toKey, toInclusive, false); }
public NavigableMap descendingMap() { return new SubMap(m, lo, loInclusive, hi, hiInclusive, !isDescending); }
/** * @throws ClassCastException {@inheritDoc} * @throws NullPointerException if {@code fromKey} is null * @throws IllegalArgumentException {@inheritDoc} */ public NavigableMap tailMap(Object fromKey, boolean inclusive) { if (fromKey == null) throw new NullPointerException(); return new SubMap (this, fromKey, inclusive, null, false, false); }
/** * @throws ClassCastException {@inheritDoc} * @throws NullPointerException if {@code toKey} is null * @throws IllegalArgumentException {@inheritDoc} */ public NavigableMap headMap(Object toKey, boolean inclusive) { if (toKey == null) throw new NullPointerException(); return new SubMap (this, null, false, toKey, inclusive, false); }
/** * @throws ClassCastException {@inheritDoc} * @throws NullPointerException if {@code toKey} is null * @throws IllegalArgumentException {@inheritDoc} */ public NavigableMap headMap(Object toKey, boolean inclusive) { if (toKey == null) throw new NullPointerException(); return new SubMap (this, null, false, toKey, inclusive, false); }
public NavigableMap descendingMap() { ConcurrentNavigableMap dm = descendingMap; return (dm != null) ? dm : (descendingMap = new SubMap (this, null, false, null, false, true)); }
public NavigableMap descendingMap() { ConcurrentNavigableMap dm = descendingMap; return (dm != null) ? dm : (descendingMap = new SubMap (this, null, false, null, false, true)); }
public NavigableMap descendingMap() { ConcurrentNavigableMap dm = descendingMap; return (dm != null) ? dm : (descendingMap = new SubMap (this, null, false, null, false, true)); }