Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 272 for convErr (0.18 sec)

  1. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(converter.convert("1.0")).isEqualTo((Double) 1.0);
        assertThat(converter.convert("0.0")).isEqualTo((Double) 0.0);
        assertThat(converter.convert("-1.0")).isEqualTo((Double) (-1.0));
        assertThat(converter.convert("1")).isEqualTo((Double) 1.0);
        assertThat(converter.convert("0")).isEqualTo((Double) 0.0);
        assertThat(converter.convert("-1")).isEqualTo((Double) (-1.0));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/convert/DateConversionUtilTest.java

     */
    package org.codelibs.core.convert;
    
    import static org.codelibs.core.convert.DateConversionUtil.toCalendar;
    import static org.codelibs.core.convert.DateConversionUtil.toDate;
    import static org.codelibs.core.convert.DateConversionUtil.toPlainPattern;
    import static org.codelibs.core.convert.DateConversionUtil.toSqlDate;
    import static org.codelibs.core.convert.DateConversionUtil.toSqlDateJdbcEscape;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/convert/BinaryConversionUtilTest.java

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.convert;
    
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.nullValue;
    import static org.junit.Assert.assertThat;
    
    import org.codelibs.core.exception.ClIllegalArgumentException;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/encoder.md

    # JSON Compatible Encoder
    
    There are some cases where you might need to convert a data type (like a Pydantic model) to something compatible with JSON (like a `dict`, `list`, etc).
    
    For example, if you need to store it in a database.
    
    For that, **FastAPI** provides a `jsonable_encoder()` function.
    
    ## Using the `jsonable_encoder`
    
    Let's imagine that you have a database `fake_db` that only receives JSON compatible data.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 23:31:16 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Stopwatch.java

        if (MINUTES.convert(nanos, NANOSECONDS) > 0) {
          return MINUTES;
        }
        if (SECONDS.convert(nanos, NANOSECONDS) > 0) {
          return SECONDS;
        }
        if (MILLISECONDS.convert(nanos, NANOSECONDS) > 0) {
          return MILLISECONDS;
        }
        if (MICROSECONDS.convert(nanos, NANOSECONDS) > 0) {
          return MICROSECONDS;
        }
        return NANOSECONDS;
      }
    
      private static String abbreviate(TimeUnit unit) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. internal/event/target/nats.go

    			return false, store.ErrNotConnected
    		}
    	}
    
    	if connErr != nil {
    		if connErr.Error() == nats.ErrNoServers.Error() {
    			return false, store.ErrNotConnected
    		}
    		return false, connErr
    	}
    
    	if target.natsConn != nil && target.args.JetStream.Enable {
    		target.jstream, connErr = target.natsConn.JetStream()
    		if connErr != nil {
    			if connErr.Error() == nats.ErrNoServers.Error() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  7. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/ArtifactDescriptorReaderDelegate.java

                result.addDependency(convert(dependency, stereotypes));
            }
    
            DependencyManagement mgmt = model.getDependencyManagement();
            if (mgmt != null) {
                for (org.apache.maven.model.Dependency dependency : mgmt.getDependencies()) {
                    result.addManagedDependency(convert(dependency, stereotypes));
                }
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThat(converter.convert("1")).isEqualTo((Integer) 1);
        assertThat(converter.convert("0")).isEqualTo((Integer) 0);
        assertThat(converter.convert("-1")).isEqualTo((Integer) (-1));
        assertThat(converter.convert("0xff")).isEqualTo((Integer) 255);
        assertThat(converter.convert("0xFF")).isEqualTo((Integer) 255);
        assertThat(converter.convert("-0xFF")).isEqualTo((Integer) (-255));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/LongsTest.java

        assertThat(converter.convert("1")).isEqualTo((Long) 1L);
        assertThat(converter.convert("0")).isEqualTo((Long) 0L);
        assertThat(converter.convert("-1")).isEqualTo((Long) (-1L));
        assertThat(converter.convert("0xff")).isEqualTo((Long) 255L);
        assertThat(converter.convert("0xFF")).isEqualTo((Long) 255L);
        assertThat(converter.convert("-0xFF")).isEqualTo((Long) (-255L));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/convert/TimeConversionUtilTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.convert;
    
    import static org.codelibs.core.convert.TimeConversionUtil.toCalendar;
    import static org.codelibs.core.convert.TimeConversionUtil.toDate;
    import static org.codelibs.core.convert.TimeConversionUtil.toPlainPattern;
    import static org.codelibs.core.convert.TimeConversionUtil.toSqlTime;
    import static org.hamcrest.CoreMatchers.is;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top