示例#1
0
 @Override
 public int indexOf(Object target) {
   // Overridden to prevent a ton of boxing
   if (target instanceof Boolean) {
     int i = Booleans.indexOf(array, (Boolean) target, start, end);
     if (i >= 0) {
       return i - start;
     }
   }
   return -1;
 }
示例#2
0
 @Override
 public boolean contains(Object target) {
   // Overridden to prevent a ton of boxing
   return (target instanceof Boolean)
       && Booleans.indexOf(array, (Boolean) target, start, end) != -1;
 }