Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 325 for arrays (0.2 sec)

  1. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

          }
          E[] sortedElements = Arrays.copyOf(elements, length);
          Arrays.sort(sortedElements, comparator);
          int uniques = 1;
          for (int i = 1; i < sortedElements.length; i++) {
            if (comparator.compare(sortedElements[uniques - 1], sortedElements[i]) < 0) {
              sortedElements[uniques] = sortedElements[i];
              uniques++;
            }
          }
          Arrays.fill(sortedElements, uniques, length, null);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  2. maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/DefaultLifecyclesStub.java

            List<String> stubCleanCycle = Arrays.asList(PRE_CLEAN.getPhase(), CLEAN.getPhase(), POST_CLEAN.getPhase());
    
            List<String> stubSiteCycle =
                    Arrays.asList(PRE_SITE.getPhase(), SITE.getPhase(), POST_SITE.getPhase(), SITE_DEPLOY.getPhase());
    
            List<String> stubWrapperCycle = Arrays.asList(WRAPPER.getPhase());
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  3. maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java

                    .setShowErrors(true)
                    .setPluginGroups(Arrays.asList("org.apache.maven.plugins"))
                    .setLocalRepository(getLocalRepository())
                    .setRemoteRepositories(getRemoteRepositories())
                    .setPluginArtifactRepositories(getPluginArtifactRepositories())
                    .setGoals(Arrays.asList("package"));
    
            if (pom != null) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 11.7K bytes
    - Viewed (1)
  4. internal/bpool/bpool.go

    	default:
    		// buffer didn't go back into pool, just discard
    	}
    }
    
    // Width returns the width of the byte arrays in this pool.
    func (bp *BytePoolCap) Width() (n int) {
    	if bp == nil {
    		return 0
    	}
    	return bp.w
    }
    
    // WidthCap returns the cap width of the byte arrays in this pool.
    func (bp *BytePoolCap) WidthCap() (n int) {
    	if bp == nil {
    		return 0
    	}
    	return bp.wcap
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  5. maven-compat/src/test/java/org/apache/maven/repository/MirrorProcessorTest.java

            assertSame(mirrorA, mirrorSelector.getMirror(repo, Arrays.asList(mirrorA)));
            assertNull(mirrorSelector.getMirror(repo, Arrays.asList(mirrorB)));
    
            assertSame(mirrorC, mirrorSelector.getMirror(repo, Arrays.asList(mirrorC)));
            assertNull(mirrorSelector.getMirror(repo, Arrays.asList(mirrorD)));
        }
    
        /**
         * Build an ArtifactRepository object.
         *
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  6. maven-compat/src/test/java/org/apache/maven/repository/legacy/LegacyRepositorySystemTest.java

            ArtifactRepository repository =
                    repositorySystem.createArtifactRepository("repository", "http://foo", null, null, null);
            repositorySystem.injectAuthentication(Arrays.asList(repository), Arrays.asList(server));
            Authentication authentication = repository.getAuthentication();
            assertNotNull(authentication);
            assertEquals("jason", authentication.getUsername());
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  7. maven-compat/src/test/java/org/apache/maven/artifact/resolver/filter/OrArtifactFilterTest.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.artifact.resolver.filter;
    
    import java.util.Arrays;
    
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertFalse;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        String[] array = Iterators.toArray(iterator, String.class);
        assertTrue(Arrays.equals(new String[0], array));
      }
    
      @GwtIncompatible // Iterators.toArray(Iterator, Class)
      public void testToArraySingleton() {
        Iterator<String> iterator = Collections.singletonList("a").iterator();
        String[] array = Iterators.toArray(iterator, String.class);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt

      }
    
      @JvmStatic
      fun repeat(
        c: Char,
        count: Int,
      ): String {
        val array = CharArray(count)
        Arrays.fill(array, c)
        return String(array)
      }
    
      /**
       * Okio buffers are internally implemented as a linked list of arrays. Usually this implementation
       * detail is invisible to the caller, but subtle use of certain APIs may depend on these internal
       * structures.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  10. maven-core/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

     */
    package org.apache.maven.project;
    
    import javax.inject.Inject;
    
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.net.URISyntaxException;
    import java.net.URL;
    import java.util.Arrays;
    
    import org.apache.maven.artifact.repository.ArtifactRepository;
    import org.apache.maven.bridge.MavenRepositorySystem;
    import org.apache.maven.execution.DefaultMavenExecutionRequest;
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.7K bytes
    - Viewed (0)
Back to top