Package org.jruby
Class RubyArray.DefaultComparator
java.lang.Object
org.jruby.RubyArray.DefaultComparator
- All Implemented Interfaces:
Comparator<IRubyObject>
- Enclosing class:
RubyArray<T extends IRubyObject>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(IRubyObject obj1, IRubyObject obj2) protected int
compareGeneric
(IRubyObject o1, IRubyObject o2) static int
compareGeneric
(ThreadContext context, IRubyObject o1, IRubyObject o2) static int
compareGeneric
(ThreadContext context, CallSite op_cmp_sort, IRubyObject o1, IRubyObject o2) static int
compareInteger
(RubyFixnum o1, RubyFixnum o2) static int
compareString
(RubyString o1, RubyString o2) protected ThreadContext
context()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
DefaultComparator
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<IRubyObject>
-
compareGeneric
-
context
-
compareInteger
-
compareString
-
compareGeneric
-
compareGeneric
public static int compareGeneric(ThreadContext context, CallSite op_cmp_sort, IRubyObject o1, IRubyObject o2)
-