Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for javascript (0.18 sec)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java

        Collections.addAll(all, e1, e2, e3, e4, e5, e6);
        Collections.addAll(all, others);
        return copyOf(all.iterator());
      }
    
      /** ImmutableSet.of API that is friendly to use from JavaScript. */
      @JsMethod(name = "of")
      static <E> ImmutableSet<E> jsOf(E... elements) {
        return copyOf(elements);
      }
    
      @JsMethod
      public static <E> ImmutableSet<E> copyOf(E[] elements) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

       *
       * <p>This test might fail in GWT because the GWT emulations might count on the input collection
       * not to change during the copy. It is safe to do so in GWT because javascript is
       * single-threaded.
       */
      @GwtIncompatible // GWT is single threaded
      public void testCopyOf_threadSafe() {
        /*
         * The actual collections that we pass as inputs will be wrappers around these, so
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

       *
       * <p>This test might fail in GWT because the GWT emulations might count on the input collection
       * not to change during the copy. It is safe to do so in GWT because javascript is
       * single-threaded.
       */
      @GwtIncompatible // GWT is single threaded
      public void testCopyOf_threadSafe() {
        /*
         * The actual collections that we pass as inputs will be wrappers around these, so
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

      public static class ImmutableSetWithBadHashesGenerator extends TestCollidingSetGenerator
          // Work around a GWT compiler bug.  Not explicitly listing this will
          // cause the createArray() method missing in the generated javascript.
          // TODO: Remove this once the GWT bug is fixed.
          implements TestCollectionGenerator<Object> {
        @Override
        public Set<Object> create(Object... elements) {
          return ImmutableSet.copyOf(elements);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

      }
    
      private static void arrayCopy(Object[] dest, int pos, Object... source) {
        System.arraycopy(source, 0, dest, pos, source.length);
      }
    
      /** ImmutableList.of API that is friendly to use from JavaScript. */
      @JsMethod(name = "of")
      static <E> ImmutableList<E> jsOf(E... elements) {
        return copyOf(elements);
      }
    
      public static <E> ImmutableList<E> copyOf(Iterable<? extends E> elements) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 11K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

      public static class ImmutableSetWithBadHashesGenerator extends TestCollidingSetGenerator
          // Work around a GWT compiler bug.  Not explicitly listing this will
          // cause the createArray() method missing in the generated javascript.
          // TODO: Remove this once the GWT bug is fixed.
          implements TestCollectionGenerator<Object> {
        @Override
        public Set<Object> create(Object... elements) {
          return ImmutableSet.copyOf(elements);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 15.5K bytes
    - Viewed (0)
Back to top