Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 38 for J2KT (0.02 seconds)

  1. android/guava/src/com/google/common/annotations/J2ktIncompatible.java

    import java.lang.annotation.Retention;
    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    
    /**
     * The presence of this annotation on an API indicates that the method may not be used with
     * J2kt.
     *
     * @since 32.0.0
     */
    @Retention(RetentionPolicy.CLASS)
    @Target({ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD})
    @GwtCompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri May 26 22:04:00 GMT 2023
    - 1.1K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java

     *
     * @author Kevin Bourrillion
     * @since 2.0
     */
    @Immutable(containerOf = "B")
    @GwtIncompatible
    // TODO(b/278589132): Remove the redundant "@NonNull" on B once it's no longer required by J2KT.
    public final class ImmutableClassToInstanceMap<B>
        extends ForwardingMap<Class<? extends @NonNull B>, B>
        implements ClassToInstanceMap<B>, Serializable {
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 7K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/base/EquivalenceTest.java

      /*
       * We use large numbers to avoid the integer cache. Normally, we'd accomplish that merely by using
       * `new Integer` (as we do) instead of `Integer.valueOf`. However, under J2KT, `new Integer`
       * gets translated back to `Integer.valueOf` because that is the only thing J2KT can support. And
       * anyway, it's nice to avoid `Integer.valueOf` because the Android toolchain optimizes multiple
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  4. guava/src/com/google/common/annotations/J2ktIncompatible.java

    import java.lang.annotation.Retention;
    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    
    /**
     * The presence of this annotation on an API indicates that the method may not be used with
     * J2kt.
     *
     * @since 32.0.0
     */
    @Retention(RetentionPolicy.CLASS)
    @Target({ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD})
    @GwtCompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri May 26 22:04:00 GMT 2023
    - 1.1K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/CollectSpliterators.java

         * Spliterator.OfPrimitive (and override default implementations from Spliterator.OfPrimitive or
         * a subtype like Spliterator.OfInt).
         */
    
        @Override
        public /*non-final for J2KT*/ boolean tryAdvance(Consumer<? super OutElementT> action) {
          while (true) {
            if (prefix != null && prefix.tryAdvance(action)) {
              if (estimatedSize != Long.MAX_VALUE) {
                estimatedSize--;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Nov 17 22:50:48 GMT 2025
    - 19.9K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/CollectSpliterators.java

         * Spliterator.OfPrimitive (and override default implementations from Spliterator.OfPrimitive or
         * a subtype like Spliterator.OfInt).
         */
    
        @Override
        public /*non-final for J2KT*/ boolean tryAdvance(Consumer<? super OutElementT> action) {
          while (true) {
            if (prefix != null && prefix.tryAdvance(action)) {
              if (estimatedSize != Long.MAX_VALUE) {
                estimatedSize--;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java

     *
     * @author Kevin Bourrillion
     * @since 2.0
     */
    @Immutable(containerOf = "B")
    @GwtIncompatible
    // TODO(b/278589132): Remove the redundant "@NonNull" on B once it's no longer required by J2KT.
    public final class ImmutableClassToInstanceMap<B>
        extends ForwardingMap<Class<? extends @NonNull B>, B>
        implements ClassToInstanceMap<B>, Serializable {
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 7K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/collect/MultimapBuilderTest.java

            rawtypeToWildcard(MultimapBuilder.treeKeys()).arrayListValues().<String, Integer>build();
        assertTrue(multimap.keySet() instanceof SortedSet);
        assertTrue(multimap.asMap() instanceof SortedMap);
      }
    
      // J2kt cannot translate the Comparable rawtype in a usable way (it becomes Comparable<Object>
      // but types are typically only Comparable to themselves).
      @SuppressWarnings({"rawtypes", "unchecked"})
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/base/StopwatchTest.java

        ticker.advance(999999);
        assertEquals(0, stopwatch.elapsed(MILLISECONDS));
        ticker.advance(1);
        assertEquals(1, stopwatch.elapsed(MILLISECONDS));
      }
    
      @J2ktIncompatible // TODO(b/259213718): Switch J2kt to String.format("%.4g") once that's supported
      public void testToString() {
        stopwatch.start();
        assertThat(stopwatch.toString()).isEqualTo("0.000 ns");
        ticker.advance(1);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        checkUnbounded(queue);
        assertThat(queue.comparator()).isEqualTo(SOME_COMPARATOR);
      }
    
      // We use the rawtypeToWildcard "cast" to make the test work with J2KT in other tests. Leaving one
      // test without that cast to verify that using the raw Comparable works outside J2KT.
      @J2ktIncompatible // J2KT's translation of raw Comparable is not a supertype of Int translation
      public void testCreation_expectedSize() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 13:11:08 GMT 2026
    - 36.2K bytes
    - Click Count (0)
Back to Top