This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SortedListAdapter extends IntegerListAdapter { | |
private SortedList<Integer> sortedList; | |
public SortedListAdapter() { | |
this.sortedList = new SortedList<>(Integer.class, new SortedListAdapterCallback<Integer>(this) { | |
@Override public int compare(Integer item1, Integer item2) { | |
return item1.compareTo(item2); | |
} | |
@Override public boolean areContentsTheSame(Integer oldItem, Integer newItem) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PratulKalia | |
class << self | |
def should(&sblk) | |
self.new.instance_eval(&sblk) | |
end | |
end | |
end | |
class Blabber | |
def things(arg) |