@Override public short[] toShortArray() { return collection.toShortArray(); } /*
@Override public short[] toShortArray() { synchronized (sync) { return collection.toShortArray(); } } @Override
/** * Creates a queue using the elements in a type-specific collection using a * given comparator. * * <p> * This constructor is more efficient than enqueing the elements of * {@code collection} one by one. * * @param collection * a collection; its elements will be used to initialize the queue. * @param c * the comparator used in this queue, or {@code null} for the natural * order. */ public ShortHeapPriorityQueue(final ShortCollection collection, final ShortComparator c) { this(collection.toShortArray(), c); } /**
protected short[] getIds() { return labelMap.values().toShortArray(); }
protected short[] getIds() { return labelMap.values().toShortArray(); }