- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getFirst (0.14 sec)
-
src/test/java/org/codelibs/core/collection/SLinkedListTest.java
*/ @Test public void testGetFirst() throws Exception { try { list.getFirst(); fail(); } catch (final NoSuchElementException ex) { System.out.println(ex); } list.addFirst("1"); assertThat(list.getFirst(), 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) -
src/main/java/org/codelibs/core/collection/SLinkedList.java
*/ public SLinkedList() { header.next = header; header.previous = header; } /** * 最初の要素を返します。 * * @return 最初の要素 */ public E getFirst() { if (isEmpty()) { throw new NoSuchElementException(); } return getFirstEntry().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) -
src/main/java/org/codelibs/core/misc/Pair.java
this.second = second; } /** * 1番目の値を返します。 * * @return 1番目の値 */ public T1 getFirst() { return first; } /** * 1番目の値を設定します。 * * @param first * 1番目の値 */ public void setFirst(final T1 first) { this.first = first; } /** * 2番目の値を返します。 * * @return 2番目の値 */
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 3.6K bytes - Viewed (0)