Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 197 for elseif (0.14 sec)

  1. android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java

              if (!thisIterator.hasNext()) {
                return false;
              }
              current = thisIterator.next();
            } else if (cmp == 0) {
              if (!thatIterator.hasNext()) {
                return true;
              }
              target = thatIterator.next();
    
            } else if (cmp > 0) {
              return false;
            }
          }
        } catch (NullPointerException | ClassCastException e) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/ParseRequest.java

          rawValue = stringValue.substring(2);
          radix = 16;
        } else if (firstChar == '#') {
          rawValue = stringValue.substring(1);
          radix = 16;
        } else if (firstChar == '0' && stringValue.length() > 1) {
          rawValue = stringValue.substring(1);
          radix = 8;
        } else {
          rawValue = stringValue;
          radix = 10;
        }
    
        return new ParseRequest(rawValue, radix);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:09:25 GMT 2021
    - 1.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/AbstractTableTest.java

        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        if (supportsRemove()) {
          table.clear();
          assertEquals(0, table.size());
          assertFalse(table.containsRow("foo"));
        } else {
          try {
            table.clear();
            fail();
          } catch (UnsupportedOperationException expected) {
          }
        }
      }
    
      public void testPut() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 6K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/BaseComparable.java

        return s.hashCode();
      }
    
      @Override
      public boolean equals(@Nullable Object other) {
        if (other == null) {
          return false;
        } else if (other instanceof BaseComparable) {
          return s.equals(((BaseComparable) other).s);
        } else {
          return false;
        }
      }
    
      @Override
      public int compareTo(BaseComparable o) {
        return s.compareTo(o.s);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 20 11:19:03 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/Base.java

        return s.hashCode();
      }
    
      @Override
      public boolean equals(@Nullable Object other) {
        if (other == null) {
          return false;
        } else if (other instanceof Base) {
          return s.equals(((Base) other).s);
        } else {
          return false;
        }
      }
    
      @Override
      public int compareTo(Base o) {
        return s.compareTo(o.s);
      }
    
      private static final long serialVersionUID = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 22:29:45 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

          if (first == second) {
            return 0;
          } else if (first == null) {
            return -1;
          } else if (second == null) {
            return 1;
          } else if (first.length() != second.length()) {
            return first.length() - second.length();
          } else {
            return first.compareTo(second);
          }
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Utf8.java

        // This loop optimizes for chars less than 0x800.
        for (; i < utf16Length; i++) {
          char c = sequence.charAt(i);
          if (c < 0x800) {
            utf8Length += ((0x7f - c) >>> 31); // branch free!
          } else {
            utf8Length += encodedLengthGeneral(sequence, i);
            break;
          }
        }
    
        if (utf8Length < utf16Length) {
          // Necessary and sufficient condition for overflow because of maximum 3x expansion
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 10 14:11:51 GMT 2023
    - 7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

          int positionFloor = (int) LongMath.divide(numerator, scale, RoundingMode.DOWN);
          int remainder = (int) (numerator - positionFloor * scale);
          if (remainder == 0) {
            return dataset[positionFloor];
          } else {
            double positionFrac = (double) remainder / scale;
            return dataset[positionFloor]
                + positionFrac * (dataset[positionFloor + 1] - dataset[positionFloor]);
          }
        }
      },
    
      /**
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

          int positionFloor = (int) LongMath.divide(numerator, scale, RoundingMode.DOWN);
          int remainder = (int) (numerator - positionFloor * scale);
          if (remainder == 0) {
            return dataset[positionFloor];
          } else {
            double positionFrac = (double) remainder / scale;
            return dataset[positionFloor]
                + positionFrac * (dataset[positionFloor + 1] - dataset[positionFloor]);
          }
        }
      },
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TableCollectors.java

        checkNotNull(value);
        V oldValue = table.get(row, column);
        if (oldValue == null) {
          table.put(row, column, value);
        } else {
          V newValue = mergeFunction.apply(oldValue, value);
          if (newValue == null) {
            table.remove(row, column);
          } else {
            table.put(row, column, newValue);
          }
        }
      }
    
      private TableCollectors() {}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Mar 09 00:21:17 GMT 2024
    - 7.7K bytes
    - Viewed (0)
Back to top