Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 71 for if (0.12 sec)

  1. src/main/java/org/codelibs/core/convert/LongConversionUtil.java

            if (o == null) {
                return null;
            } else if (o instanceof Long) {
                return (Long) o;
            } else if (o instanceof Number) {
                return ((Number) o).longValue();
            } else if (o instanceof String) {
                return toLong((String) o);
            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
    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)
  2. src/main/java/org/codelibs/core/misc/Tuple5.java

                }
            } else if (!value1.equals(other.value1)) {
                return false;
            }
            if (value2 == null) {
                if (other.value2 != null) {
                    return false;
                }
            } else if (!value2.equals(other.value2)) {
                return false;
            }
            if (value3 == null) {
                if (other.value3 != null) {
                    return false;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/misc/DynamicProperties.java

        public DynamicProperties(final File file) {
            // check path
            if (file == null) {
                throw new FileAccessException("ECL0108");
            }
    
            this.propertiesFile = file;
            if (!this.propertiesFile.exists()) {
                final File parentDir = this.propertiesFile.getParentFile();
                if (!parentDir.exists()) {
                    if (!parentDir.mkdir()) {
    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)
  4. src/main/java/org/codelibs/core/misc/Tuple3.java

                }
            } else if (!value1.equals(other.value1)) {
                return false;
            }
            if (value2 == null) {
                if (other.value2 != null) {
                    return false;
                }
            } else if (!value2.equals(other.value2)) {
                return false;
            }
            if (value3 == null) {
                if (other.value3 != null) {
                    return false;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/beans/impl/MethodDescImpl.java

                return null;
            }
            final ParameterizedClassDesc pcd = parameterizedClassDesc.getArguments()[0];
            if (pcd == null) {
                return null;
            }
            return pcd.getRawClass();
        }
    
        @Override
        public Class<?> getValueClassOfMap() {
            if (!Map.class.isAssignableFrom(returnType) || !isParameterized()) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/collection/LruHashSet.java

        public int size() {
            return map.size();
        }
    
        /**
         * Returns true if this set contains no elements.
         *
         * @return true if this set contains no elements.
         */
        @Override
        public boolean isEmpty() {
            return map.isEmpty();
        }
    
        /**
         * Returns true if this set contains the specified element.
         *
         * @param o
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/misc/Pair.java

            if (this == obj) {
                return true;
            }
            if (obj == null) {
                return false;
            }
            if (getClass() != obj.getClass()) {
                return false;
            }
            @SuppressWarnings("unchecked")
            final Pair<T1, T2> other = (Pair<T1, T2>) obj;
            if (first == null) {
                if (other.first != null) {
    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)
  8. src/main/java/org/codelibs/core/convert/BigDecimalConversionUtil.java

         */
        public static BigDecimal toBigDecimal(final Object o, final String pattern) {
            if (o == null) {
                return null;
            } else if (o instanceof BigDecimal) {
                return (BigDecimal) o;
            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
                    return new BigDecimal(new SimpleDateFormat(pattern).format(o));
                }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/misc/Base64Util.java

         * @return エンコードされたデータ
         */
        public static String encode(final byte[] inData) {
            if (ArrayUtil.isEmpty(inData)) {
                return "";
            }
            final int mod = inData.length % 3;
            final int num = inData.length / 3;
            char[] outData = null;
            if (mod != 0) {
                outData = new char[(num + 1) * 4];
            } else {
                outData = new char[num * 4];
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/io/ClassTraversalTest.java

            final JarURLConnection con = (JarURLConnection) classURL.openConnection();
            ClassTraversalUtil.forEach(con.getJarFile(), (ClassHandler) (packageName, shortClassName) -> {
                if (count < 10) {
                    System.out.println(ClassUtil.concatName(packageName, shortClassName));
                }
                assertThat(packageName, is(notNullValue()));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.1K bytes
    - Viewed (0)
Back to top