All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.javadoc.org.spincast.core.utils.SpincastStatics.html Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version






SpincastStatics (org.spincast:spincast-framework 1.0.0 API)












org.spincast.core.utils

Class SpincastStatics



  • public class SpincastStatics
    extends Object
    Some few static methods. You can still change the underlying instance though, in case you need to change/fix something.
    • Field Detail

      • logger

        protected static final org.slf4j.Logger logger
    • Constructor Detail

      • SpincastStatics

        public SpincastStatics()
    • Method Detail

      • getIso8601DateParserDefault

        public static org.spincast.shaded.org.apache.commons.lang3.time.FastDateFormat getIso8601DateParserDefault()
      • getIso8601DateParser1

        protected static org.spincast.shaded.org.apache.commons.lang3.time.FastDateFormat getIso8601DateParser1()
      • getIso8601DateParser2

        protected static org.spincast.shaded.org.apache.commons.lang3.time.FastDateFormat getIso8601DateParser2()
      • getIso8601DateParser3

        protected static org.spincast.shaded.org.apache.commons.lang3.time.FastDateFormat getIso8601DateParser3()
      • getIso8601DateParser4

        protected static org.spincast.shaded.org.apache.commons.lang3.time.FastDateFormat getIso8601DateParser4()
      • getIso8601DateParser5

        protected static org.spincast.shaded.org.apache.commons.lang3.time.FastDateFormat getIso8601DateParser5()
      • getIso8601DateParser6

        protected static org.spincast.shaded.org.apache.commons.lang3.time.FastDateFormat getIso8601DateParser6()
      • getStackTrace

        public static String getStackTrace(Throwable ex)
        Gets the stack trace of an Exception.
      • getStackTraceInstance

        protected String getStackTraceInstance(Throwable ex)
      • map

        public static <K,V> Map<K,V> map(K key1,
                                         V value1)
        Creates a map.
      • mapInstance

        protected <K,V> Map<K,V> mapInstance(K key1,
                                             V value1)
      • map

        public static <K,V> Map<K,V> map(K key1,
                                         V value1,
                                         K key2,
                                         V value2)
        Creates a map.
      • mapInstance

        protected <K,V> Map<K,V> mapInstance(K key1,
                                             V value1,
                                             K key2,
                                             V value2)
      • map

        public static <K,V> Map<K,V> map(K key1,
                                         V value1,
                                         K key2,
                                         V value2,
                                         K key3,
                                         V value3)
        Creates a map.
      • mapInstance

        protected <K,V> Map<K,V> mapInstance(K key1,
                                             V value1,
                                             K key2,
                                             V value2,
                                             K key3,
                                             V value3)
      • map

        public static <K,V> Map<K,V> map(K key1,
                                         V value1,
                                         K key2,
                                         V value2,
                                         K key3,
                                         V value3,
                                         K key4,
                                         V value4)
        Creates a map.
      • mapInstance

        protected <K,V> Map<K,V> mapInstance(K key1,
                                             V value1,
                                             K key2,
                                             V value2,
                                             K key3,
                                             V value3,
                                             K key4,
                                             V value4)
      • map

        public static <K,V> Map<K,V> map(K key1,
                                         V value1,
                                         K key2,
                                         V value2,
                                         K key3,
                                         V value3,
                                         K key4,
                                         V value4,
                                         K key5,
                                         V value5)
        Creates a map.
      • mapInstance

        protected <K,V> Map<K,V> mapInstance(K key1,
                                             V value1,
                                             K key2,
                                             V value2,
                                             K key3,
                                             V value3,
                                             K key4,
                                             V value4,
                                             K key5,
                                             V value5)
      • getAllMethods

        public static Set<Method> getAllMethods(Class<?> clazz)
        Gets *all* the methods of a class for all visibilities and for all the parents hierarchy, even those from Object.
      • getAllMethods

        public static Set<Method> getAllMethods(Class<?> clazz,
                                                boolean includeJavaLangObjectMethods)
        Gets all the methods of a class, for all visibilities and for all the parents hierarchy.
        Parameters:
        includeJavaLangObjectMethods - if false, methods from Object will be excluded.
      • getAllMethodsInstance

        protected Set<Method> getAllMethodsInstance(Class<?> clazz,
                                                    boolean includeJavaLangObjectMethods)
      • parseISO8601date

        public static Date parseISO8601date(String str)
        Parse a ISO 8601 string representation of a date to a Date object.
      • parseISO8601dateInstance

        public Date parseISO8601dateInstance(String str)
      • closeQuietly

        public static void closeQuietly(InputStream stream)
      • closeQuietlyInstance

        public void closeQuietlyInstance(InputStream stream)
      • closeQuietly

        public static void closeQuietly(OutputStream stream)
      • closeQuietlyInstance

        public void closeQuietlyInstance(OutputStream stream)
      • closeQuietly

        public static void closeQuietly(Reader reader)
      • closeQuietlyInstance

        public void closeQuietlyInstance(Reader reader)
      • closeQuietly

        public static void closeQuietly(Closeable closeable)
      • closeQuietlyInstance

        public void closeQuietlyInstance(Closeable closeable)
      • toArray

        public static <T> T[] toArray(Set<T> set,
                                      Class<? super T> clazz)
      • toArrayInstance

        public <T> T[] toArrayInstance(Set<T> set,
                                       Class<? super T> clazz)
      • stringValueOrNullInstance

        public String stringValueOrNullInstance(Object obj)
      • longValueOrNull

        public static Long longValueOrNull(Object obj)
        Returns null if the specified object is null or uses Long.parseLong(String) otherwise, by casting the obj using obj.toString()
      • longValueOrNullInstance

        public Long longValueOrNullInstance(Object obj)

Copyright © 2019. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy