@Override public float firstFloatKey() { return sortedMap.firstFloatKey(); } @Override
@Override public FloatComparator comparator() { synchronized (sync) { return sortedMap.comparator(); } } @Override
/** * {@inheritDoc} * * @deprecated Please use the corresponding type-specific method instead. */ @Deprecated @Override public Float firstKey() { return sortedMap.firstKey(); } /**
previousGroupLeader == null ? count - 1 : previousGroupLeader.collapsedCount + count)); Object2BooleanLinkedOpenHashMap<BytesRef> bytesRefs = scoreGroups.get(score); if (bytesRefs == null) { bytesRefs = new Object2BooleanLinkedOpenHashMap<>(); scoreGroups.put(score, bytesRefs); bytesRefs = scoreGroups.get(previousGroupLeader.score); bytesRefs.remove(newBytesRef, true); if (bytesRefs.isEmpty()) scoreGroups.remove(previousGroupLeader.score); final float firstScoreKey = scoreGroups.firstFloatKey(); bytesRefs = scoreGroups.get(firstScoreKey); final BytesRef lastKey = bytesRefs.lastKey(); bytesRefs.removeLastBoolean(); groupLeaders.remove(lastKey); if (bytesRefs.size() == 0) scoreGroups.remove(firstScoreKey);
/** * {@inheritDoc} * <p> * Note that this specification strengthens the one given in * {@link SortedMap#headMap(Object)}. * * @deprecated Please use the corresponding type-specific method instead. */ @Deprecated @Override default Float2ReferenceSortedMap<V> headMap(final Float to) { return headMap((to).floatValue()); } /**
/** * Returns an iterable yielding a bidirectional iterator that will be * {@linkplain FastSortedEntrySet fast}, if possible, on the * {@linkplain Map#entrySet() entry set} of the provided {@code map}. * * @param map * a map from which we will try to extract an iterable yielding a * (fast) bidirectional iterator on the entry set. * @return an iterable yielding a bidirectional iterator on the entry set of the * given map that will be fast, if possible. * @since 8.0.0 */ @SuppressWarnings("unchecked") public static <V> ObjectBidirectionalIterable<Float2ReferenceMap.Entry<V>> fastIterable( Float2ReferenceSortedMap<V> map) { final ObjectSortedSet<Float2ReferenceMap.Entry<V>> entries = map.float2ReferenceEntrySet(); return entries instanceof Float2ReferenceSortedMap.FastSortedEntrySet ? ((Float2ReferenceSortedMap.FastSortedEntrySet<V>) entries)::fastIterator : entries; } /**
@Override public float lastFloatKey() { synchronized (sync) { return sortedMap.lastFloatKey(); } } /**
/** * {@inheritDoc} * * @deprecated Please use the corresponding type-specific method instead. */ @Deprecated @Override public Float lastKey() { return sortedMap.lastKey(); } /**
@Override public FloatSortedSet keySet() { if (keys == null) keys = FloatSortedSets.unmodifiable(sortedMap.keySet()); return (FloatSortedSet) keys; } @Override
@Override public Float2ReferenceSortedMap<V> headMap(final float to) { return new UnmodifiableSortedMap<>(sortedMap.headMap(to)); } @Override
/** * Returns a sorted-set view of the mappings contained in this map. * <p> * Note that this specification strengthens the one given in the corresponding * type-specific unsorted map. * * @return a sorted-set view of the mappings contained in this map. * @see SortedMap#entrySet() * @deprecated Please use the corresponding type-specific method instead. */ @SuppressWarnings({"unchecked", "rawtypes"}) @Deprecated @Override default ObjectSortedSet<Map.Entry<Float, V>> entrySet() { return (ObjectSortedSet) float2ReferenceEntrySet(); } /**
@Override public float lastFloatKey() { return sortedMap.lastFloatKey(); } /**
/** * {@inheritDoc} * * @deprecated Please use the corresponding type-specific method instead. */ @Deprecated @Override public Float lastKey() { synchronized (sync) { return sortedMap.lastKey(); } } /**
@Override public FloatSortedSet keySet() { if (keys == null) keys = FloatSortedSets.synchronize(sortedMap.keySet(), sync); return (FloatSortedSet) keys; } @Override
@Override public float firstFloatKey() { synchronized (sync) { return sortedMap.firstFloatKey(); } } @Override
/** * {@inheritDoc} * * @deprecated Please use the corresponding type-specific method instead. */ @Deprecated @Override public Float2ReferenceSortedMap<V> headMap(final Float to) { return new UnmodifiableSortedMap<>(sortedMap.headMap(to)); } /**
@Override public ObjectSortedSet<Float2ReferenceMap.Entry<V>> float2ReferenceEntrySet() { if (entries == null) entries = ObjectSortedSets.unmodifiable(sortedMap.float2ReferenceEntrySet()); return (ObjectSortedSet<Float2ReferenceMap.Entry<V>>) entries; } /**
@Override public FloatComparator comparator() { return sortedMap.comparator(); } @Override
/** * {@inheritDoc} * * @deprecated Please use the corresponding type-specific method instead. */ @Deprecated @Override default Float lastKey() { return Float.valueOf(lastFloatKey()); } /**
/** * {@inheritDoc} * * @deprecated Please use the corresponding type-specific method instead. */ @Deprecated @Override public Float firstKey() { synchronized (sync) { return sortedMap.firstKey(); } } /**