コード例 #1
0
 public int lastIndexOfFourth(M m, int index) {
   try {
     for (int i = index; i >= 0; i--) {
       if ((m == null ? get(i).fourth == null : m.equals(get(i).fourth))) return i;
     }
   } catch (final Exception e) {
   }
   return -1;
 }
コード例 #2
0
 public synchronized boolean removeFifth(M m) {
   Quint<T, K, L, M, N> pair;
   for (final Iterator<Quint<T, K, L, M, N>> i = iterator(); i.hasNext(); ) {
     pair = i.next();
     if ((m == null ? pair.fifth == null : m.equals(pair.fifth))) {
       i.remove();
       return true;
     }
   }
   return false;
 }
コード例 #3
0
 public boolean containsFifth(M m) {
   for (final Iterator<Quint<T, K, L, M, N>> i = iterator(); i.hasNext(); ) {
     if ((m == null) ? i.next() == null : m.equals(i.next().fifth)) return true;
   }
   return false;
 }