- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 89 for sinn (0.15 sec)
-
guava-tests/test/com/google/common/io/ByteSinkTest.java
assertTrue(sink.wasStreamClosed()); assertArrayEquals(new byte[] {1, 2, 3, 4}, sink.getBytes()); } public void testWrite_bytes() throws IOException { assertArrayEquals(new byte[0], sink.getBytes()); sink.write(bytes); assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed()); assertArrayEquals(bytes, sink.getBytes()); } public void testWriteFrom_inputStream() throws IOException {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 3.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/FunnelsTest.java
public void testAsOutputStream() throws Exception { PrimitiveSink sink = mock(PrimitiveSink.class); OutputStream out = Funnels.asOutputStream(sink); byte[] bytes = {1, 2, 3, 4}; out.write(255); out.write(bytes); out.write(bytes, 1, 2); verify(sink).putByte((byte) 255); verify(sink).putBytes(bytes); verify(sink).putBytes(bytes, 1, 2); } public void testSerialization() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Oct 02 16:24:50 GMT 2020 - 5.9K bytes - Viewed (0) -
CONTRIBUTING.md
project. - If you are an individual writing original source code and you're sure you own the intellectual property, then you'll need to sign an [individual CLA][]. Please include your GitHub username. - If you work for a company that wants to allow you to contribute your work, then you'll need to sign a [corporate CLA][]. You generally only need to submit a CLA once, so if you've already submitted
Plain Text - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Nov 17 18:47:47 GMT 2023 - 3.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/TestCharSink.java
package com.google.common.io; import static com.google.common.base.Charsets.UTF_8; import java.io.FilterWriter; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.Writer; /** * A char sink for testing that has configurable behavior. * * @author Colin Decker */ public class TestCharSink extends CharSink implements TestStreamSupplier { private final TestByteSink byteSink;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Apr 21 02:27:51 GMT 2017 - 2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ComparisonChain.java
* .compare(this.anInt, that.anInt) * .compare(this.anEnum, that.anEnum, Ordering.natural().nullsLast()) * .result(); * } * }</pre> * * <p>The value of this expression will have the same sign as the <i>first nonzero</i> comparison * result in the chain, or will be zero if every comparison result was zero. * * <p><b>Note:</b> {@code ComparisonChain} instances are <b>immutable</b>. For this utility to work
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Wed Sep 21 17:28:11 GMT 2022 - 11.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/SourceSinkTester.java
import java.io.Reader; import java.io.StringReader; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.util.List; import junit.framework.TestCase; /** * @param <S> the source or sink type * @param <T> the data type (byte[] or String) * @param <F> the factory type * @author Colin Decker */ @AndroidIncompatible // TODO(b/230620681): Make this available (even though we won't run it).
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Apr 27 18:57:08 GMT 2022 - 4.9K bytes - Viewed (0) -
android/guava/src/com/google/common/math/LongMath.java
long naiveSum = a + b; if ((a ^ b) < 0 | (a ^ naiveSum) >= 0) { // If a and b have different signs or a has the same sign as the result then there was no // overflow, return. return naiveSum; } // we did over/under flow, if the sign is negative we should return MAX otherwise MIN return Long.MAX_VALUE + ((naiveSum >>> (Long.SIZE - 1)) ^ 1); } /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 07 17:50:39 GMT 2024 - 44.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt
Gryphon went on. `Or would you like the Mock Turtle to sing you a song?' `Oh, a song, please, if the Mock Turtle would be so kind,' Alice replied, so eagerly that the Gryphon said, in a rather offended tone, `Hm! No accounting for tastes! Sing her "Turtle Soup," will you, old fellow?' The Mock Turtle sighed deeply, and began, in a voice sometimes choked with sobs, to sing this:--
Plain Text - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Oct 29 21:35:03 GMT 2012 - 145.2K bytes - Viewed (0) -
android/guava/src/com/google/common/net/UrlEscapers.java
* the same. * <li>The special characters ".", "-", "*", and "_" remain the same. * <li>The space character " " is converted into a plus sign "+". * <li>All other characters are converted into one or more bytes using UTF-8 encoding and each * byte is then represented by the 3-character string "%XY", where "XY" is the two-digit,
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Apr 28 15:04:33 GMT 2021 - 6.9K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheBuilderSpec.java
checkArgument(!keyAndValue.isEmpty(), "blank key-value pair"); checkArgument( keyAndValue.size() <= 2, "key-value pair %s with more than one equals sign", keyValuePair); // Find the ValueParser for the current key. String key = keyAndValue.get(0); ValueParser valueParser = VALUE_PARSERS.get(key);
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Aug 22 14:27:44 GMT 2022 - 18.1K bytes - Viewed (0)