Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getHost (0.14 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/test/java/org/codelibs/core/io/ResourceUtilTest.java

            final URL url = new File("/Program File").toURI().toURL();
            assertEquals("file:" + getRoot() + "Program File", ResourceUtil.toExternalForm(url));
        }
    
        /**
         * @throws Exception
         */
        public void testGetFileName() throws Exception {
            URL url = new File("/Program File").toURI().toURL();
            assertEquals(getRoot() + "Program File", ResourceUtil.getFileName(url));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  3. 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)
Back to top