- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for Size (0.12 sec)
-
src/test/java/org/codelibs/core/collection/ArrayMapTest.java
map = null; } /** * @throws Exception */ @Test public void testSize() throws Exception { assertThat(map.size(), equalTo(3)); map.put("3", "test3"); assertThat(map.size(), equalTo(4)); } /** * @throws Exception */ @Test public void testIsEmpty() throws Exception { assertThat(map.isEmpty(), is(not(true)));
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 10.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/LruHashMapTest.java
assertThat(i.next(), is("bbb")); assertThat(i.next(), is("ccc")); assertThat(i.next(), is("aaa")); lru.put("ddd", "444"); assertThat(lru.size(), is(3)); assertThat(lru.get("bbb"), is(nullValue())); i = lru.keySet().iterator(); assertThat(i.next(), is("ccc")); assertThat(i.next(), is("aaa")); assertThat(i.next(), is("ddd"));
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/SLinkedListTest.java
} /** * @throws Exception */ @Test public void testSize() throws Exception { assertThat(list.size(), is(0)); list.addLast("1"); assertThat(list.size(), is(1)); list.removeFirst(); assertThat(list.size(), is(0)); } /** * @throws Exception */ @Test public void testIsEmpty() throws Exception {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 8.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
if (initialCapacity > 0 && initialCapacity <= MAX_BUF_SIZE) { bufferSize = initialCapacity; } else { bufferSize = DEFAULT_BUF_SIZE; } char[] buf = new char[bufferSize]; int size = 0; int len; try { while ((len = reader.read(buf, size, bufferSize - size)) != -1) { size += len; if (size == bufferSize) {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 9K bytes - Viewed (0) -
src/test/java/org/codelibs/core/misc/DisposableUtilTest.java
public void test1() throws Exception { DisposableUtil.add(new TestDisposable("a")); assertThat(DisposableUtil.disposables.size(), is(1)); DisposableUtil.dispose(); assertThat(count, is(1)); assertThat(names, is("a")); assertThat(DisposableUtil.disposables.size(), is(0)); } /** * @throws Exception */ @Test public void test2() throws Exception {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 3.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/TraverserUtilTest.java
final Set<String> set = new HashSet<String>(); traverser.forEach((ClassHandler) (packageName, shortClassName) -> set.add(ClassUtil.concatName(packageName, shortClassName))); assertThat(set.size() > 0, is(true)); assertThat(set.contains(DummyTest.class.getName()), is(true)); assertThat(set.contains(TraverserUtilTest.class.getName()), is(true));
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 6.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/SerializeUtil.java
import org.codelibs.core.exception.IORuntimeException; /** * オブジェクトをシリアライズするためのユーティリティです。 * * @author higa */ public abstract class SerializeUtil { private static final int BYTE_ARRAY_SIZE = 8 * 1024; /** * オブジェクトをシリアライズできるかテストします。 * * @param obj * シリアライズ対象のオブジェクト。{@literal null}であってはいけません * @return シリアライズして復元したオブジェクト */
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 3.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java
list.add(new MethodDescImpl(this, method)); } for (int i = 0; i < methodDescListMap.size(); ++i) { final List<MethodDesc> methodDescList = methodDescListMap.getAt(i); methodDescsCache.put(methodDescListMap.getKeyAt(i), methodDescList.toArray(new MethodDesc[methodDescList.size()])); } } /** * フィールドを準備します。 */ protected void setupFieldDescs() {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 26.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/ReaderUtil.java
import org.codelibs.core.exception.IORuntimeException; /** * {@link Reader}用のユーティリティクラスです。 * * @author higa */ public abstract class ReaderUtil { /** デフォルトのバッファサイズ */ private static final int BUF_SIZE = 4096; /** * 指定のエンコーディングでファイルから入力する{@link Reader}を作成します。 * * @param is * 入力ストリーム。{@literal null}であってはいけません * @param encoding
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 4.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/CaseInsensitiveMapTest.java
} /** * @throws Exception */ @Test public void testRemove() throws Exception { assertThat(map.remove("ONE"), is("1")); assertThat(map.size(), is(1)); assertThat(map.remove("dummy"), is(nullValue())); } /** * @throws Exception */ @Test public void testPutAll() throws Exception {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 4K bytes - Viewed (0)