Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 95 for if (7.38 sec)

  1. src/main/java/org/codelibs/core/beans/converter/SqlDateConverter.java

        }
    
        @Override
        public Object getAsObject(final String value) {
            if (StringUtil.isEmpty(value)) {
                return null;
            }
            return DateConversionUtil.toSqlDate(value, pattern);
        }
    
        @Override
        public String getAsString(final Object value) {
            if (value == null) {
                return null;
            }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/beans/converter/TimestampConverter.java

        }
    
        @Override
        public Object getAsObject(final String value) {
            if (isEmpty(value)) {
                return null;
            }
            return TimestampConversionUtil.toSqlTimestamp(value, pattern);
        }
    
        @Override
        public String getAsString(final Object value) {
            if (value == null) {
                return null;
            }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  3. 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)
  4. src/main/java/org/codelibs/core/convert/TimestampConversionUtil.java

                if (pos != -1) {
                    buf.replace(pos, pos + 1, "MM");
                }
            }
            if (buf.indexOf("dd") == -1) {
                final int pos = buf.indexOf("d");
                if (pos != -1) {
                    buf.replace(pos, pos + 1, "dd");
                }
            }
            if (buf.indexOf("HH") == -1) {
                final int pos = buf.indexOf("H");
                if (pos != -1) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/lang/StringUtil.java

            if (s == null) {
                return null;
            }
            if (s.length() == 1) {
                return s.toUpperCase();
            }
            final StringBuilder buf = new StringBuilder(40);
            int pos = 0;
            for (int i = 1; i < s.length(); ++i) {
                if (Character.isUpperCase(s.charAt(i))) {
                    if (buf.length() != 0) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.7K bytes
    - Viewed (0)
  6. 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)
  7. src/main/java/org/codelibs/core/io/CloseableUtil.java

        public static void close(final Closeable closeable) {
            if (closeable == null) {
                return;
            }
            try {
                closeable.close();
            } catch (final IOException e) {
                logger.log(format("ECL0017", e.getMessage()), e);
            }
        }
    
        public static void closeQuietly(final Closeable closeable) {
            if (closeable == null) {
                return;
            }
            try {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/security/MessageDigestUtil.java

         *            ハッシュ化する文字列
         * @return ハッシュ化された文字列
         */
        public static String digest(final String algorithm, final String text) {
            assertArgumentNotEmpty("algorithm", algorithm);
    
            if (text == null) {
                return null;
            }
    
            final MessageDigest msgDigest = getInstance(algorithm);
            try {
                msgDigest.update(text.getBytes("UTF-8"));
    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)
  9. 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)
  10. 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)
Back to top