public class GoogleBitstreamComparator extends Object implements Comparator<Bitstream>
| Constructor and Description |
|---|
GoogleBitstreamComparator(Context context,
Map<String,String> googleScholarSettings) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Bitstream b1,
Bitstream b2)
Compares two bitstreams based on their mimetypes, if mimetypes are the same,then the largest bitstream comes first
See google-metadata.properties to define the order
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(Bitstream b1, Bitstream b2)
compare in interface Comparator<Bitstream>b1 - first bitstreamb2 - second bitstreamCopyright © 2017 DuraSpace. All rights reserved.