Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 209 for newArrayList (0.12 sec)

  1. guava-testlib/src/com/google/common/collect/testing/Helpers.java

    @ElementTypesAreNonnullByDefault
    public class Helpers {
      // Clone of Objects.equal
      static boolean equal(@Nullable Object a, @Nullable Object b) {
        return a == b || (a != null && a.equals(b));
      }
    
      // Clone of Lists.newArrayList
      public static <E extends @Nullable Object> List<E> copyToList(Iterable<? extends E> elements) {
        List<E> list = new ArrayList<>();
        addAll(list, elements);
        return list;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

    @J2ktIncompatible
    @ElementTypesAreNonnullByDefault
    public final class NullPointerTester {
    
      private final ClassToInstanceMap<Object> defaults = MutableClassToInstanceMap.create();
      private final List<Member> ignoredMembers = Lists.newArrayList();
    
      private ExceptionTypePolicy policy = ExceptionTypePolicy.NPE_OR_UOE;
    
      public NullPointerTester() {
        try {
          /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/es/user/bsentity/dbmeta/UserDbm.java

            return _columnUidNumber;
        }
    
        public ColumnInfo columnX121Address() {
            return _columnX121Address;
        }
    
        protected List<ColumnInfo> ccil() {
            List<ColumnInfo> ls = newArrayList();
            ls.add(columnBusinessCategory());
            ls.add(columnCarLicense());
            ls.add(columnCity());
            ls.add(columnDepartmentNumber());
            ls.add(columnDescription());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 27K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

       * <p>Before the bug was fixed this test would fail at least 30% of the time.
       */
      public void testTransitionRace() throws TimeoutException {
        for (int k = 0; k < 1000; k++) {
          List<Service> services = Lists.newArrayList();
          for (int i = 0; i < 5; i++) {
            services.add(new SnappyShutdownService(i));
          }
          ServiceManager manager = new ServiceManager(services);
          manager.startAsync().awaitHealthy();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/LinkedListMultimap.java

        while (newValues.hasNext()) {
          keyValues.add(newValues.next());
        }
    
        return oldValues;
      }
    
      private List<V> getCopy(@ParametricNullness K key) {
        return unmodifiableList(Lists.newArrayList(new ValueForKeyIterator(key)));
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>The returned list is immutable and implements {@link java.util.RandomAccess}.
       */
      @CanIgnoreReturnValue
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/CharSource.java

      public ImmutableList<String> readLines() throws IOException {
        Closer closer = Closer.create();
        try {
          BufferedReader reader = closer.register(openBufferedStream());
          List<String> result = Lists.newArrayList();
          String line;
          while ((line = reader.readLine()) != null) {
            result.add(line);
          }
          return ImmutableList.copyOf(result);
        } catch (Throwable e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/NullPointerTester.java

    @J2ktIncompatible
    @ElementTypesAreNonnullByDefault
    public final class NullPointerTester {
    
      private final ClassToInstanceMap<Object> defaults = MutableClassToInstanceMap.create();
      private final List<Member> ignoredMembers = Lists.newArrayList();
    
      private ExceptionTypePolicy policy = ExceptionTypePolicy.NPE_OR_UOE;
    
      public NullPointerTester() {
        try {
          /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/TreeRangeMap.java

          @Override
          public void clear() {
            SubRangeMap.this.clear();
          }
    
          private boolean removeEntryIf(Predicate<? super Entry<Range<K>, V>> predicate) {
            List<Range<K>> toRemove = Lists.newArrayList();
            for (Entry<Range<K>, V> entry : entrySet()) {
              if (predicate.apply(entry)) {
                toRemove.add(entry.getKey());
              }
            }
            for (Range<K> range : toRemove) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

              // nothing has transitioned since construction, good.
              ready = true;
            } else {
              // This should be an extremely rare race condition.
              List<Service> servicesInBadStates = Lists.newArrayList();
              for (Service service : servicesByState().values()) {
                if (service.state() != NEW) {
                  servicesInBadStates.add(service);
                }
              }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/ServiceManager.java

              // nothing has transitioned since construction, good.
              ready = true;
            } else {
              // This should be an extremely rare race condition.
              List<Service> servicesInBadStates = Lists.newArrayList();
              for (Service service : servicesByState().values()) {
                if (service.state() != NEW) {
                  servicesInBadStates.add(service);
                }
              }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.2K bytes
    - Viewed (0)
Back to top