Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 98 for IDENTITY (0.03 sec)

  1. android/guava-tests/test/com/google/common/base/EquivalenceTest.java

        new EqualsTester()
            .addEqualityGroup(
                Equivalence.identity().onResultOf(Functions.toStringFunction()),
                Equivalence.identity().onResultOf(Functions.toStringFunction()))
            .addEqualityGroup(Equivalence.equals().onResultOf(Functions.toStringFunction()))
            .addEqualityGroup(Equivalence.identity().onResultOf(Functions.identity()))
            .testEquals();
      }
    
      public void testEquivalentTo() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/FunctionsTest.java

      public void testIdentity_same() {
        Function<@Nullable String, @Nullable String> identity = Functions.identity();
        assertThat(identity.apply(null)).isNull();
        assertSame("foo", identity.apply("foo"));
      }
    
      public void testIdentity_notSame() {
        Function<Long, Long> identity = Functions.identity();
        assertNotSame(new Long(135135L), identity.apply(new Long(135135L)));
      }
    
      @J2ktIncompatible
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 16K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/DummyProxy.java

        public int hashCode() {
          return identity().hashCode();
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof DummyHandler) {
            DummyHandler that = (DummyHandler) obj;
            return identity().equals(that.identity());
          } else {
            return false;
          }
        }
    
        private DummyProxy identity() {
          return DummyProxy.this;
        }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:10:29 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/FunctionsTest.java

      public void testIdentity_same() {
        Function<@Nullable String, @Nullable String> identity = Functions.identity();
        assertThat(identity.apply(null)).isNull();
        assertSame("foo", identity.apply("foo"));
      }
    
      public void testIdentity_notSame() {
        Function<Long, Long> identity = Functions.identity();
        assertNotSame(new Long(135135L), identity.apply(new Long(135135L)));
      }
    
      @J2ktIncompatible
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 16K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Equivalence.java

          return INSTANCE;
        }
    
        @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 1;
      }
    
      static final class Identity extends Equivalence<Object> implements Serializable {
    
        static final Identity INSTANCE = new Identity();
    
        @Override
        protected boolean doEquivalent(Object a, Object b) {
          return false;
        }
    
        @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Jul 10 01:47:55 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTester.kt

        assertThat(url.host).startsWith(Punycode.PREFIX_STRING)
      }
    
      enum class Encoding {
        IDENTITY {
          override fun encode(codePoint: Int): String = String(codePoint)
        },
        PERCENT {
          override fun encode(codePoint: Int): String {
            val utf8 = IDENTITY.encode(codePoint).encodeUtf8()
            val percentEncoded = Buffer()
            for (i in 0 until utf8.size) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  7. okhttp-osgi-tests/src/test/kotlin/okhttp3/osgi/OsgiTest.kt

        // available in the repository.
        val runRequireString =
          REQUIRED_BUNDLES.joinToString(separator = ",") {
            "osgi.identity;filter:='(osgi.identity=$it)'"
          }
    
        val bndEditModel =
          BndEditModel(workspace).apply {
            // Temporary project to satisfy bnd API.
            project = Project(workspace, workspaceDir.toFile())
          }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

        Map<String, Integer> expected = transformValues(underlying, Functions.<Integer>identity());
    
        assertMapsEqual(expected, expected);
    
        Map<String, Integer> equalToUnderlying = Maps.newTreeMap();
        equalToUnderlying.putAll(underlying);
        Map<String, Integer> map = transformValues(equalToUnderlying, Functions.<Integer>identity());
        assertMapsEqual(expected, map);
    
        map =
            transformValues(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  9. schema/utils.go

    			for i := 0; i < reflectValue.Len(); i++ {
    				appendToResults(reflectValue.Index(i))
    			}
    		}
    
    		reflectValue = reflectResults
    	}
    
    	return
    }
    
    // GetIdentityFieldValuesMap get identity map from fields
    func GetIdentityFieldValuesMap(ctx context.Context, reflectValue reflect.Value, fields []*Field) (map[string][]reflect.Value, [][]interface{}) {
    	var (
    		results       = [][]interface{}{}
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Oct 30 11:15:36 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/MapsTransformValuesTest.java

    @NullMarked
    public class MapsTransformValuesTest extends AbstractMapsTransformValuesTest {
      @Override
      protected Map<String, String> makeEmptyMap() {
        return transformValues(new HashMap<String, String>(), Functions.<String>identity());
      }
    
      @Override
      protected Map<String, String> makePopulatedMap() {
        Map<String, Integer> underlying = new HashMap<>();
        underlying.put("a", 1);
        underlying.put("b", 2);
        underlying.put("c", 3);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 1.5K bytes
    - Viewed (0)
Back to top