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 TypeMethodDescriptionintcompare(IRubyObject obj1, IRubyObject obj2) protected intcompareGeneric(IRubyObject o1, IRubyObject o2) static intcompareGeneric(ThreadContext context, IRubyObject o1, IRubyObject o2) static intcompareGeneric(ThreadContext context, CallSite op_cmp_sort, IRubyObject o1, IRubyObject o2) static intcompareInteger(RubyFixnum o1, RubyFixnum o2) static intcompareString(RubyString o1, RubyString o2) protected ThreadContextcontext()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
DefaultComparator
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<IRubyObject>
-
compareGeneric
-
context
-
compareInteger
-
compareString
-
compareGeneric
-
compareGeneric
public static int compareGeneric(ThreadContext context, CallSite op_cmp_sort, IRubyObject o1, IRubyObject o2)
-