int headIndex(E toElement, boolean inclusive) { int index = Collections.binarySearch(elements, checkNotNull(toElement), comparator()); if (index >= 0) { return inclusive ? index + 1 : index; } else { return ~index; } }
int tailIndex(E fromElement, boolean inclusive) { int index = Collections.binarySearch(elements, checkNotNull(fromElement), comparator()); if (index >= 0) { return inclusive ? index : index + 1; } else { return ~index; } }
int tailIndex(E fromElement, boolean inclusive) { int index = Collections.binarySearch(elements, checkNotNull(fromElement), comparator()); if (index >= 0) { return inclusive ? index : index + 1; } else { return ~index; } }
int headIndex(E toElement, boolean inclusive) { int index = Collections.binarySearch(elements, checkNotNull(toElement), comparator()); if (index >= 0) { return inclusive ? index + 1 : index; } else { return ~index; } }
public static void serialize( SerializationStreamWriter writer, RegularImmutableSortedSet<?> instance) throws SerializationException { writer.writeObject(instance.comparator()); Collection_CustomFieldSerializerBase.serialize(writer, instance); } }
targets = ((Multiset<?>) targets).elementSet(); if (!SortedIterables.hasSameComparator(comparator(), targets) || (targets.size() <= 1)) { return super.containsAll(targets);
targets = ((Multiset<?>) targets).elementSet(); if (!SortedIterables.hasSameComparator(comparator(), targets) || (targets.size() <= 1)) { return super.containsAll(targets);
int headIndex(E toElement, boolean inclusive) { int index = Collections.binarySearch(elements, checkNotNull(toElement), comparator()); if (index >= 0) { return inclusive ? index + 1 : index; } else { return ~index; } }
int tailIndex(E fromElement, boolean inclusive) { int index = Collections.binarySearch(elements, checkNotNull(fromElement), comparator()); if (index >= 0) { return inclusive ? index : index + 1; } else { return ~index; } }
int tailIndex(E fromElement, boolean inclusive) { return SortedLists.binarySearch( elements, checkNotNull(fromElement), comparator(), inclusive ? FIRST_PRESENT : FIRST_AFTER, NEXT_HIGHER); }
int tailIndex(E fromElement, boolean inclusive) { return SortedLists.binarySearch( elements, checkNotNull(fromElement), comparator(), inclusive ? FIRST_PRESENT : FIRST_AFTER, NEXT_HIGHER); }
int tailIndex(E fromElement, boolean inclusive) { return SortedLists.binarySearch( elements, checkNotNull(fromElement), comparator(), inclusive ? FIRST_PRESENT : FIRST_AFTER, NEXT_HIGHER); }
int headIndex(E toElement, boolean inclusive) { return SortedLists.binarySearch( elements, checkNotNull(toElement), comparator(), inclusive ? FIRST_AFTER : FIRST_PRESENT, NEXT_HIGHER); }
int tailIndex(E fromElement, boolean inclusive) { return SortedLists.binarySearch( elements, checkNotNull(fromElement), comparator(), inclusive ? FIRST_PRESENT : FIRST_AFTER, NEXT_HIGHER); }
int tailIndex(E fromElement, boolean inclusive) { return SortedLists.binarySearch( elements, checkNotNull(fromElement), comparator(), inclusive ? FIRST_PRESENT : FIRST_AFTER, NEXT_HIGHER); }
int headIndex(E toElement, boolean inclusive) { return SortedLists.binarySearch( elements, checkNotNull(toElement), comparator(), inclusive ? FIRST_AFTER : FIRST_PRESENT, NEXT_HIGHER); }
int headIndex(E toElement, boolean inclusive) { return SortedLists.binarySearch( elements, checkNotNull(toElement), comparator(), inclusive ? FIRST_AFTER : FIRST_PRESENT, NEXT_HIGHER); }
int tailIndex(E fromElement, boolean inclusive) { return SortedLists.binarySearch( elements, checkNotNull(fromElement), comparator(), inclusive ? FIRST_PRESENT : FIRST_AFTER, NEXT_HIGHER); }
int tailIndex(E fromElement, boolean inclusive) { return SortedLists.binarySearch( elements, checkNotNull(fromElement), comparator(), inclusive ? FIRST_PRESENT : FIRST_AFTER, NEXT_HIGHER); }
public static void serialize( SerializationStreamWriter writer, RegularImmutableSortedSet<?> instance) throws SerializationException { writer.writeObject(instance.comparator()); Collection_CustomFieldSerializerBase.serialize(writer, instance); } }