Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 147 for throw (0.21 sec)

  1. src/main/java/org/codelibs/core/lang/ClassUtil.java

            assertArgumentNotNull("clazz", clazz);
    
            try {
                return clazz.newInstance();
            } catch (final InstantiationException e) {
                throw new InstantiationRuntimeException(clazz, e);
            } catch (final IllegalAccessException e) {
                throw new IllegalAccessRuntimeException(clazz, e);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 27.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/misc/DisposableUtilTest.java

        private int count;
    
        private String names = "";
    
        /**
         * @throws Exception
         */
        @Before
        public void setUp() throws Exception {
            DisposableUtil.dispose();
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void test1() throws Exception {
            DisposableUtil.add(new TestDisposable("a"));
    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)
  3. src/main/java/org/codelibs/core/collection/SLinkedList.java

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

    public class BeanMap extends LinkedHashMap<String, Object> {
    
        private static final long serialVersionUID = 1;
    
        @Override
        public Object get(final Object key) {
            if (!containsKey(key)) {
                throw new IllegalKeyOfBeanMapException(key, this);
            }
            return super.get(key);
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/lang/ThreadUtil.java

        public static void sleep(final long millis) {
            if (millis < 1L) {
                return;
            }
            try {
                Thread.sleep(millis);
            } catch (final InterruptedException e) {
                throw new InterruptedRuntimeException(e);
            }
        }
    
        public static void sleepQuietly(final long millis) {
            if (millis < 1L) {
                return;
            }
            try {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/lang/MethodUtil.java

                    throw (Error) t;
                }
                throw new InvocationTargetRuntimeException(method.getDeclaringClass(), ex);
            } catch (final IllegalAccessException ex) {
                throw new IllegalAccessRuntimeException(method.getDeclaringClass(), ex);
            }
        }
    
        /**
         * {@link Method}オブジェクトによって表される基本となる{@code static}メソッドを、指定したパラメータで呼び出します。
         *
         * @param <T>
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/io/PropertiesUtilTest.java

            /**
             *
             */
            private static final long serialVersionUID = 1L;
    
            @Override
            public synchronized void load(final InputStream inStream) throws IOException {
                throw new IOException("load");
            }
    
        }
    
        /**
         * {@link org.codelibs.core.io.PropertiesUtil#load(Properties, String)}
         */
        @Test
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/collection/EnumerationIterator.java

            assertArgumentNotNull("enumeration", enumeration);
            this.enumeration = enumeration;
        }
    
        @Override
        public void remove() {
            throw new ClUnsupportedOperationException("remove");
        }
    
        @Override
        public boolean hasNext() {
            return enumeration.hasMoreElements();
        }
    
        @Override
        public T next() {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/collection/MultiIterator.java

            }
            return false;
        }
    
        @Override
        public E next() {
            if (!hasNext()) {
                throw new NoSuchElementException();
            }
            return iterators[index].next();
        }
    
        @Override
        public void remove() {
            throw new ClUnsupportedOperationException("remove");
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/timer/TimeoutTask.java

         */
        public boolean isStopped() {
            return status == STOPPED;
        }
    
        /**
         * タイマーをとめます。
         */
        public void stop() {
            if (status != ACTIVE) {
                throw new ClIllegalStateException(String.valueOf(status));
            }
            status = STOPPED;
        }
    
        /**
         * タイマーを再開始します。
         */
        public void restart() {
            status = ACTIVE;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.7K bytes
    - Viewed (0)
Back to top