public static < E extends Comparable < E > > MinMaxPriorityQueue < E > create ( Iterable < ? extends E > initialContents ) { return new Builder < E > ( Ordering . < E > natural ( ) ) . create ( initialContents ) ; }
Creates a new min - max priority queue using natural order no maximum size and initially containing the given elements .