Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 150 for get_object (0.07 seconds)

  1. src/main/java/org/codelibs/core/beans/converter/NumberConverter.java

         */
        public NumberConverter(final String pattern) {
            assertArgumentNotEmpty("pattern", pattern);
            this.pattern = pattern;
        }
    
        @Override
        public Object getAsObject(final String value) {
            if (StringUtil.isEmpty(value)) {
                return null;
            }
            try {
                return new DecimalFormat(pattern).parse(value);
            } catch (final ParseException e) {
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/beans/converter/TimestampConverter.java

         */
        public TimestampConverter(final String pattern) {
            assertArgumentNotEmpty("pattern", pattern);
            this.pattern = pattern;
        }
    
        @Override
        public Object getAsObject(final String value) {
            if (isEmpty(value)) {
                return null;
            }
            return TimestampConversionUtil.toSqlTimestamp(value, pattern);
        }
    
        @Override
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  3. internal/bucket/bandwidth/measurement.go

    package bandwidth
    
    import (
    	"sync"
    	"sync/atomic"
    	"time"
    )
    
    const (
    	// betaBucket is the weight used to calculate exponential moving average
    	betaBucket = 0.1 // Number of averages considered = 1/(1-betaObject)
    )
    
    // bucketMeasurement captures the bandwidth details for one bucket
    type bucketMeasurement struct {
    	lock                 sync.Mutex
    	bytesSinceLastWindow uint64    // Total bytes since last window was processed
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sat Jun 03 20:41:51 GMT 2023
    - 2.9K bytes
    - Click Count (0)
  4. cmd/object-api-input-checks.go

    )
    
    // Checks on CopyObject arguments, bucket and object.
    func checkCopyObjArgs(ctx context.Context, bucket, object string) error {
    	return checkBucketAndObjectNames(ctx, bucket, object)
    }
    
    // Checks on GetObject arguments, bucket and object.
    func checkGetObjArgs(ctx context.Context, bucket, object string) error {
    	return checkBucketAndObjectNames(ctx, bucket, object)
    }
    
    // Checks on DeleteObject arguments, bucket and object.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5.7K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/core/beans/converter/SqlDateConverterTest.java

         */
        @Test
        public void testGetAsObjectAndGetAsString() throws Exception {
            final SqlDateConverter converter = new SqlDateConverter("yyyy/MM/dd");
            final java.sql.Date result = (java.sql.Date) converter.getAsObject("2008/01/16");
            System.out.println(result);
            assertThat(converter.getAsString(result), is("2008/01/16"));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  6. src/main/java/jcifs/pac/kerberos/KerberosRelevantAuthData.java

            } catch (IOException e) {
                throw new PACDecodingException("Malformed kerberos ticket", e);
            }
    
            this.authorizations = new ArrayList<>();
            Enumeration<?> authElements = authSequence.getObjects();
            while (authElements.hasMoreElements()) {
                ASN1Sequence authElement = ASN1Util.as(ASN1Sequence.class, authElements);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/core/beans/Converter.java

        String getAsString(Object value);
    
        /**
         * Returns the value as an object.
         *
         * @param value
         *            the value
         * @return the value as an object
         */
        Object getAsObject(String value);
    
        /**
         * Returns {@literal true} if this converter can handle the specified type.
         *
         * @param clazz
         *            the type. Must not be {@literal null}
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/core/beans/converter/NumberConverterTest.java

        /**
         * @throws Exception
         */
        @Test
        public void testGetAsObject() throws Exception {
            final NumberConverter converter = new NumberConverter("##0");
            assertThat(converter.getAsObject("100"), is((Object) Long.valueOf("100")));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetAsString() throws Exception {
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Fri Jun 20 13:40:57 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  9. cmd/warm-backend-s3.go

    			return nil, s3.ToObjectError(err, object)
    		}
    	}
    	c := &minio.Core{Client: s3.client}
    	// Important to use core primitives here to pass range get options as is.
    	r, _, _, err := c.GetObject(ctx, s3.Bucket, s3.getDest(object), gopts)
    	if err != nil {
    		return nil, s3.ToObjectError(err, object)
    	}
    	return r, nil
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Jun 08 16:13:30 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/core/beans/converter/SqlDateConverter.java

         */
        public SqlDateConverter(final String pattern) {
            assertArgumentNotEmpty("pattern", pattern);
            this.pattern = pattern;
        }
    
        @Override
        public Object getAsObject(final String value) {
            if (StringUtil.isEmpty(value)) {
                return null;
            }
            return DateConversionUtil.toSqlDate(value, pattern);
        }
    
        @Override
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 2K bytes
    - Click Count (0)
Back to Top