Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1021 - 1030 of 4,785 for new (0.11 sec)

  1. internal/grid/types.go

    	ePool sync.Pool // Elements
    }
    
    // NewArrayOf returns a new ArrayOf.
    // You must provide a function that returns a new instance of T.
    func NewArrayOf[T RoundTripper](newFn func() T) *ArrayOf[T] {
    	return &ArrayOf[T]{
    		ePool: sync.Pool{New: func() any {
    			return newFn()
    		}},
    	}
    }
    
    // New returns a new empty Array.
    func (p *ArrayOf[T]) New() *Array[T] {
    	return &Array[T]{
    		p: p,
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. cmd/bitrot.go

    	HighwayHash256S: "highwayhash256S",
    }
    
    // New returns a new hash.Hash calculating the given bitrot algorithm.
    func (a BitrotAlgorithm) New() hash.Hash {
    	switch a {
    	case SHA256:
    		return sha256.New()
    	case BLAKE2b512:
    		b2, _ := blake2b.New512(nil) // New512 never returns an error if the key is nil
    		return b2
    	case HighwayHash256:
    		hh, _ := highwayhash.New(magicHighwayHash256Key) // New will never return error since key is 256 bit
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

                final byte[] decode = Base64.getUrlDecoder().decode(hash.substring(SIMILAR_DOC_HASH_PREFIX.length()));
                try (BufferedReader reader =
                        new BufferedReader(new InputStreamReader(new GZIPInputStream(new ByteArrayInputStream(decode)), Constants.UTF_8))) {
                    return ReaderUtil.readText(reader);
                } catch (final IOException e) {
                    if (logger.isDebugEnabled()) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 12K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java

      public static final MediaType MEDIA_TYPE_JSON = MediaType.get("application/json");
    
      private final OkHttpClient client = new OkHttpClient.Builder()
          .addInterceptor(new GzipRequestInterceptor())
          .build();
      private final Moshi moshi = new Moshi.Builder().build();
      private final JsonAdapter<Map<String, String>> mapJsonAdapter = moshi.adapter(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat May 25 18:02:55 UTC 2019
    - 3.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        this.scenario = scenario;
        this.timeout = timeout;
        this.expectedOutcome = expectedOutcome;
        this.monitor = new Monitor(fair);
        this.guard = new FlagGuard(monitor);
        this.tearDownLatch = new CountDownLatch(1);
        this.doingCallLatch = new CountDownLatch(1);
        this.callCompletedLatch = new CountDownLatch(1);
      }
    
      private static String nameFor(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  6. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/LocalSnapshotMetadata.java

        }
    
        private static Metadata createMetadata(Artifact artifact) {
            Snapshot snapshot = new Snapshot();
            snapshot.setLocalCopy(true);
            Versioning versioning = new Versioning();
            versioning.setSnapshot(snapshot);
    
            Metadata metadata = new Metadata();
            metadata.setVersioning(versioning);
            metadata.setGroupId(artifact.getGroupId());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/NetShareEnumResponse.java

            int start = bufferIndex;
            SmbShareInfo e;
    
            useUnicode = false;
    
            results = new SmbShareInfo[numEntries];
            for( int i = 0; i < numEntries; i++ ) {
                results[i] = e = new SmbShareInfo();
                e.netName = readString( buffer, bufferIndex, 13, false );
                bufferIndex += 14;
                e.type = readInt2( buffer, bufferIndex );
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/lang/ClassLoaderIterator.java

        }
    
        @Override
        public ClassLoader next() {
            if (!hasNext()) {
                throw new NoSuchElementException();
            }
            final ClassLoader result = classLoader;
            classLoader = classLoader.getParent();
            return result;
        }
    
        @Override
        public void remove() {
            throw new ClUnsupportedOperationException("remove");
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. compat/maven-embedder/src/main/java/org/apache/maven/cli/ExtensionConfigurationModule.java

                if (configuration == null) {
                    configuration = new XmlNodeImpl("configuration");
                }
                Function<String, String> cb = Interpolator.memoize(callback);
                Function<String, String> it = s -> interpolator.interpolate(s, cb);
                configuration = new ExtensionInterpolator(it).transform(configuration);
    
                binder.bind(XmlNode.class)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelCacheTag.java

         *
         * @return The type of data, must not be {@code null}.
         */
        Class<T> getType();
    
        /**
         * The tag used for the raw model without profile activation
         */
        ModelCacheTag<ModelData> RAW = new ModelCacheTag<ModelData>() {
    
            @Override
            public String getName() {
                return "raw";
            }
    
            @Override
            public Class<ModelData> getType() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top