CollectionSizeOrdering

org.beangle.commons.bean.orderings.CollectionSizeOrdering
class CollectionSizeOrdering[T <: Iterator[_]] extends Ordering[T]

比较两个集合,元素多的大

Attributes

Graph
Supertypes
trait Ordering[T]
trait PartialOrdering[T]
trait Equiv[T]
trait Serializable
trait Comparator[T]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

class OrderingOps(lhs: T)

Attributes

Inherited from:
Ordering
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def compare(first: T, second: T): Int

compare

compare

Value parameters

first

a T object.

second

a T object.

Attributes

Returns

equals : 0,first less then second : -1 or small , first greate then second : 1 or big

Inherited methods

override def equiv(x: T, y: T): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering -> Equiv
Inherited from:
Ordering
override def gt(x: T, y: T): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
override def gteq(x: T, y: T): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
def isReverseOf(other: Ordering[_]): Boolean

Attributes

Inherited from:
Ordering
override def lt(x: T, y: T): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
override def lteq(x: T, y: T): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
def max[U <: T](x: U, y: U): U

Attributes

Inherited from:
Ordering
def min[U <: T](x: U, y: U): U

Attributes

Inherited from:
Ordering
def on[U](f: U => T): Ordering[U]

Attributes

Inherited from:
Ordering
def orElse(other: Ordering[T]): Ordering[T]

Attributes

Inherited from:
Ordering
def orElseBy[S](f: T => S)(implicit ord: Ordering[S]): Ordering[T]

Attributes

Inherited from:
Ordering
override def reverse: Ordering[T]

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
def reversed(): Comparator[T]

Attributes

Inherited from:
Comparator
def thenComparing[U <: Comparable[_ >: U <: <FromJavaObject>]](x$0: Function[_ >: T <: <FromJavaObject>, _ <: U]): Comparator[T]

Attributes

Inherited from:
Comparator
def thenComparing[U <: <FromJavaObject>](x$0: Function[_ >: T <: <FromJavaObject>, _ <: U], x$1: Comparator[_ >: U <: <FromJavaObject>]): Comparator[T]

Attributes

Inherited from:
Comparator
def thenComparing(x$0: Comparator[_ >: T <: <FromJavaObject>]): Comparator[T]

Attributes

Inherited from:
Comparator
def thenComparingDouble(x$0: ToDoubleFunction[_ >: T <: <FromJavaObject>]): Comparator[T]

Attributes

Inherited from:
Comparator
def thenComparingInt(x$0: ToIntFunction[_ >: T <: <FromJavaObject>]): Comparator[T]

Attributes

Inherited from:
Comparator
def thenComparingLong(x$0: ToLongFunction[_ >: T <: <FromJavaObject>]): Comparator[T]

Attributes

Inherited from:
Comparator
def tryCompare(x: T, y: T): Some[Int]

Attributes

Inherited from:
Ordering

Implicits

Inherited implicits

implicit def mkOrderingOps(lhs: T): OrderingOps

Attributes

Inherited from:
Ordering