public static class RubyArray.DefaultComparator extends java.lang.Object implements java.util.Comparator<IRubyObject>
Constructor and Description |
---|
DefaultComparator(ThreadContext context) |
Modifier and Type | Method and Description |
---|---|
int |
compare(IRubyObject obj1,
IRubyObject obj2) |
protected int |
compareGeneric(IRubyObject o1,
IRubyObject o2) |
static int |
compareGeneric(ThreadContext context,
CallSite op_cmp_sort,
IRubyObject o1,
IRubyObject o2) |
static int |
compareGeneric(ThreadContext context,
IRubyObject o1,
IRubyObject o2) |
static int |
compareInteger(RubyFixnum o1,
RubyFixnum o2) |
static int |
compareString(RubyString o1,
RubyString o2) |
protected ThreadContext |
context() |
public DefaultComparator(ThreadContext context)
public int compare(IRubyObject obj1, IRubyObject obj2)
compare
in interface java.util.Comparator<IRubyObject>
protected int compareGeneric(IRubyObject o1, IRubyObject o2)
protected ThreadContext context()
public static int compareInteger(RubyFixnum o1, RubyFixnum o2)
public static int compareString(RubyString o1, RubyString o2)
public static int compareGeneric(ThreadContext context, IRubyObject o1, IRubyObject o2)
public static int compareGeneric(ThreadContext context, CallSite op_cmp_sort, IRubyObject o1, IRubyObject o2)
Copyright © 2001-2019 JRuby. All Rights Reserved.