Package org.jruby
Class RubyArray.BlockComparator
java.lang.Object
org.jruby.RubyArray.BlockComparator
- All Implemented Interfaces:
Comparator<IRubyObject>
- Enclosing class:
- RubyArray<T extends IRubyObject>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Block(package private) final ThreadContextprivate final CallSiteprivate final CallSiteprotected final IRubyObject -
Constructor Summary
ConstructorsConstructorDescriptionBlockComparator(ThreadContext context, Block block, IRubyObject self, CallSite gt, CallSite lt) BlockComparator(ThreadContext context, Block block, CallSite gt, CallSite lt) -
Method Summary
Modifier and TypeMethodDescriptionintcompare(IRubyObject obj1, IRubyObject obj2) protected final ThreadContextcontext()protected final IRubyObjectyieldBlock(IRubyObject obj1, IRubyObject obj2) 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
-
Field Details
-
context
-
block
-
self
-
gt
-
lt
-
-
Constructor Details
-
BlockComparator
BlockComparator(ThreadContext context, Block block, CallSite gt, CallSite lt) -
BlockComparator
BlockComparator(ThreadContext context, Block block, IRubyObject self, CallSite gt, CallSite lt)
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<IRubyObject>
-
yieldBlock
-
context
-