Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 177 for Constructor (0.16 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        assertEquals(Double.doubleToRawLongBits(x), Double.doubleToRawLongBits(y));
      }
    
      /** constructor creates array of given size with all elements zero */
      public void testConstructor() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int i = 0; i < SIZE; i++) {
          assertBitEquals(0.0, aa.get(i));
        }
      }
    
      /** constructor with null array throws NPE */
      public void testConstructor2NPE() {
        double[] a = null;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

            factories.add(factory);
          }
        }
        if (!Modifier.isAbstract(type.getRawType().getModifiers())) {
          for (Constructor<?> constructor : type.getRawType().getDeclaredConstructors()) {
            Invokable<T, T> invokable = type.constructor(constructor);
            if (!invokable.isPrivate() && !invokable.isSynthetic()) {
              factories.add(invokable);
            }
          }
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

      }
    
      /** constructor creates array of given size with all elements zero */
      public void testConstructor() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int i = 0; i < SIZE; i++) {
          assertBitEquals(0.0, aa.get(i));
        }
      }
    
      /** constructor with null array throws NPE */
      public void testConstructor2NPE() {
        double[] a = null;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/InvokableTest.java

        public final void publicFinalMethod() {}
    
        void notAnnotatedMethod() {}
    
        static Invokable<A, A> constructor() throws Exception {
          Constructor<A> constructor = A.class.getDeclaredConstructor(Object.class);
          Invokable<A, A> invokable = Invokable.from(constructor);
          assertEquals(constructor.getName(), invokable.getName());
          assertEquals(A.class, invokable.getDeclaringClass());
          return invokable;
        }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30.9K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingSortedMultiset.java

     *
     * @author Louis Wasserman
     */
    @ElementTypesAreNonnullByDefault
    public abstract class ForwardingSortedMultiset<E extends @Nullable Object>
        extends ForwardingMultiset<E> implements SortedMultiset<E> {
      /** Constructor for use by subclasses. */
      protected ForwardingSortedMultiset() {}
    
      @Override
      protected abstract SortedMultiset<E> delegate();
    
      @Override
      public SortedSet<E> elementSet() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedInputs.java

          throw new RuntimeException("bad constructor");
        }
    
        public ExceptionWithGoodAndBadConstructor(Throwable cause) {
          super(cause);
        }
      }
    
      static final class ExceptionWithBadConstructor extends Exception {
        public ExceptionWithBadConstructor(String message, Throwable cause) {
          throw new RuntimeException("bad constructor");
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 13:46:56 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/AndroidIncompatible.java

     * limitations under the License.
     */
    
    package com.google.common.base;
    
    import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
    import static java.lang.annotation.ElementType.CONSTRUCTOR;
    import static java.lang.annotation.ElementType.FIELD;
    import static java.lang.annotation.ElementType.METHOD;
    import static java.lang.annotation.ElementType.TYPE;
    import static java.lang.annotation.RetentionPolicy.CLASS;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Jul 07 15:40:13 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/IgnoreJRERequirement.java

     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    package com.google.common.base;
    
    import static java.lang.annotation.ElementType.CONSTRUCTOR;
    import static java.lang.annotation.ElementType.METHOD;
    import static java.lang.annotation.ElementType.TYPE;
    
    import java.lang.annotation.Target;
    
    /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Jan 11 14:30:06 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/NullPointerTester.java

       */
      public void testConstructors(Class<?> c, Visibility minimalVisibility) {
        for (Constructor<?> constructor : c.getDeclaredConstructors()) {
          if (minimalVisibility.isVisible(constructor) && !isIgnored(constructor)) {
            testConstructor(constructor);
          }
        }
      }
    
      /** Runs {@link #testConstructor} on every public constructor in class {@code c}. */
      public void testAllPublicConstructors(Class<?> c) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 23.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        Constructor<ArrayList> constructor = ArrayList.class.getConstructor();
        assertEquals(
            TypeToken.of(ArrayList.class),
            TypeToken.of(ArrayList.class).constructor(constructor).getOwnerType());
        assertEquals(
            new TypeToken<ArrayList<String>>() {},
            new TypeToken<ArrayList<String>>() {}.constructor(constructor).getOwnerType());
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
Back to top