Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

      }
    
      @Test fun setInstant() {
        val expected = Instant.ofEpochMilli(1000L)
        val headers =
          Headers.Builder()
            .add("Test-Instant", Instant.ofEpochMilli(0L))
            .set("Test-Instant", expected)
            .build()
        assertThat(headers["Test-Instant"]).isEqualTo("Thu, 01 Jan 1970 00:00:01 GMT")
        assertThat(headers.getInstant("Test-Instant")).isEqualTo(expected)
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/Headers.kt

       * either the field is absent or cannot be parsed as a date.
       */
      @IgnoreJRERequirement // Only programs that already have Instant will use this.
      fun getInstant(name: String): Instant? {
        return getDate(name)?.toInstant()
      }
    
      /** Returns the number of field values. */
      @get:JvmName("size")
      val size: Int
        get() = namesAndValues.size / 2
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

      fun headers() {
        var headers: Headers = headersOf("", "")
        headers = mapOf("" to "").toHeaders()
        val get: String? = headers[""]
        val date: Date? = headers.getDate("")
        val instant: Instant? = headers.getInstant("")
        val size: Int = headers.size
        val name: String = headers.name(0)
        val value: String = headers.value(0)
        val names: Set<String> = headers.names()
        val values: List<String> = headers.values("")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
  4. okhttp/api/okhttp.api

    	public final fun byteCount ()J
    	public fun equals (Ljava/lang/Object;)Z
    	public final fun get (Ljava/lang/String;)Ljava/lang/String;
    	public final fun getDate (Ljava/lang/String;)Ljava/util/Date;
    	public final fun getInstant (Ljava/lang/String;)Ljava/time/Instant;
    	public fun hashCode ()I
    	public fun iterator ()Ljava/util/Iterator;
    	public final fun name (I)Ljava/lang/String;
    	public final fun names ()Ljava/util/Set;
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/asm.go

    			// Strange special case: MCR, MRC.
    			prog.To.Type = obj.TYPE_CONST
    			x0 := p.getConstant(prog, op, &a[0])
    			x1 := p.getConstant(prog, op, &a[1])
    			x2 := int64(p.getRegister(prog, op, &a[2]))
    			x3 := int64(p.getRegister(prog, op, &a[3]))
    			x4 := int64(p.getRegister(prog, op, &a[4]))
    			x5 := p.getConstant(prog, op, &a[5])
    			// Cond is handled specially for this instruction.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
  6. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/base/Kt1DescUtils.kt

        }
        if (initializer != null) {
            val bindingContext = analysisContext.analyze(initializer)
            val constantValue = ConstantExpressionEvaluator.getConstant(initializer, bindingContext)
            if (constantValue != null) {
                val evaluated = constantValue.toConstantValue(propertyDescriptor?.type ?: TypeUtils.NO_EXPECTED_TYPE).toKtConstantValue()
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 33.2K bytes
    - Viewed (0)
Back to top