Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 94 for if (0.18 sec)

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

            if (o == null) {
                return null;
            } else if (o instanceof Byte) {
                return (Byte) o;
            } else if (o instanceof Number) {
                return ((Number) o).byteValue();
            } else if (o instanceof String) {
                return toByte((String) o);
            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
    Java
    - Registered: Fri Apr 26 20:58:09 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/Tuple4.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 Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/convert/BooleanConversionUtil.java

            if (o == null) {
                return null;
            } else if (o instanceof Boolean) {
                return (Boolean) o;
            } else if (o instanceof Number) {
                final int num = ((Number) o).intValue();
                return num != 0;
            } else if (o instanceof String) {
                final String s = (String) o;
                if ("true".equalsIgnoreCase(s)) {
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/util/CopyOptions.java

            if (prefix != null && !name.startsWith(prefix)) {
                return false;
            }
            if (!includePropertyNames.isEmpty()) {
                for (final String includeName : includePropertyNames) {
                    if (includeName.equals(name)) {
                        for (final String excludeName : excludePropertyNames) {
                            if (excludeName.equals(name)) {
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/exception/ConstructorNotFoundRuntimeException.java

            return paramTypes;
        }
    
        private static String getSignature(final Object... methodArgs) {
            if (methodArgs == null || methodArgs.length == 0) {
                return "";
            }
            final StringBuilder buf = new StringBuilder(100);
            for (final Object arg : methodArgs) {
                if (arg != null) {
                    buf.append(arg.getClass().getName());
                } else {
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/lang/AnnotationUtil.java

            final MethodDesc methodDesc = beanDesc.getMethodDescNoException(name);
            if (methodDesc == null) {
                return null;
            }
            final Object value = methodDesc.invoke(annotation);
            if (value == null || "".equals(value)) {
                return null;
            }
            return value;
        }
    
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/crypto/CachedCipher.java

                throw new UnsupportedEncodingRuntimeException(e);
            }
        }
    
        protected Cipher pollEncryptoCipher() {
            Cipher cipher = encryptoQueue.poll();
            if (cipher == null) {
                final SecretKeySpec sksSpec = new SecretKeySpec(key.getBytes(), algorithm);
                try {
                    cipher = Cipher.getInstance(algorithm);
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/beans/converter/TimeConverter.java

            this.pattern = pattern;
        }
    
        @Override
        public Object getAsObject(final String value) {
            if (isEmpty(value)) {
                return null;
            }
            return TimeConversionUtil.toSqlTime(value, pattern);
        }
    
        @Override
        public String getAsString(final Object value) {
            if (value == null) {
                return null;
            }
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/io/LineIterator.java

            this.reader = reader;
        }
    
        @Override
        public boolean hasNext() {
            if (line == EMPTY) {
                line = ReaderUtil.readLine(reader);
            }
            return line != null;
        }
    
        @Override
        public String next() {
            if (!hasNext()) {
                throw new NoSuchElementException();
            }
            final String result = line;
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/io/OutputStreamUtil.java

            }
        }
    
        /**
         * {@link OutputStream}をflushします。
         *
         * @param out
         *            出力ストリーム
         */
        public static void flush(final OutputStream out) {
            if (out == null) {
                return;
            }
            try {
                out.flush();
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.9K bytes
    - Viewed (0)
Back to top