Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getLast (0.66 sec)

  1. src/test/java/org/codelibs/core/collection/SLinkedListTest.java

         * @throws Exception
         */
        @Test
        public void testGetLast() throws Exception {
            try {
                list.getLast();
                fail();
            } catch (final NoSuchElementException ex) {
                System.out.println(ex);
            }
            list.addLast("1");
            assertThat(list.getLast(), is("1"));
        }
    
        /**
         * @throws Exception
         */
        @Test
    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)
  2. src/main/java/org/codelibs/core/collection/SLinkedList.java

                throw new NoSuchElementException();
            }
            return getFirstEntry().element;
        }
    
        /**
         * 最後の要素を返します。
         *
         * @return 最後の要素
         */
        public E getLast() {
            if (isEmpty()) {
                throw new NoSuchElementException();
            }
            return getLastEntry().element;
        }
    
        /**
         * 最初のエントリを返します。
         *
         * @return 最初のエントリ
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11K bytes
    - Viewed (1)
  3. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

            @SuppressWarnings("unchecked")
            ArrayMap<String, String> copy = (ArrayMap<String, String>) SerializeUtil.serialize(map);
            assertThat(copy.getAt(0), is(nullValue()));
            assertThat(copy.getAt(1), is("test"));
            assertThat(copy.getAt(2), is("test2"));
            assertThat(map.equals(copy), is(true));
        }
    
        /**
         * @throws Exception
         */
        @Test
    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)
  4. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

            return pd;
        }
    
        @Override
        public PropertyDesc getPropertyDesc(final int index) {
            assertArgumentArrayIndex("index", index, getPropertyDescSize());
    
            return propertyDescCache.getAt(index);
        }
    
        @Override
        public int getPropertyDescSize() {
            return propertyDescCache.size();
        }
    
        @Override
        public Iterable<PropertyDesc> getPropertyDescs() {
    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)
  5. src/main/java/org/codelibs/core/collection/ArrayMap.java

            }
            return null;
        }
    
        /**
         * インデックスで指定された位置の値を返します。
         *
         * @param index
         *            インデックス
         * @return インデックスで指定された位置の値
         */
        public V getAt(final int index) {
            return getEntryAt(index).getValue();
        }
    
        /**
         * インデックスで指定された位置のキーを返します。
         *
         * @param index
         *            インデックス
         * @return インデックスで指定された位置のキー
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 20.6K bytes
    - Viewed (1)
Back to top