Class GetWithoutExceptionImpl<I,​O>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<O> from​(I object)
      Evaluates the property path on the specified object.
      O fromOrDefault​(I object, O defaultValue)
      Evaluates the property path on the specified object.
      java.lang.String toString()  
      java.lang.String toString​(boolean detailed)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • from

        public java.util.Optional<O> from​(I object)
        Description copied from interface: GetWithoutException
        Evaluates the property path on the specified object.
        Specified by:
        from in interface GetWithoutException<I,​O>
        Parameters:
        object - The object to evaluate the property path on.
        Returns:
        Returns the value of the property wrapped in an Optional.
      • fromOrDefault

        public O fromOrDefault​(I object,
                               O defaultValue)
        Description copied from interface: GetWithoutException
        Evaluates the property path on the specified object. If a value is present it will be returned, otherwise the specified default value is returned.
        Specified by:
        fromOrDefault in interface GetWithoutException<I,​O>
        Parameters:
        object - The object to evaluate the property path on.
        defaultValue - The default value to return in case the property path does not have a value.
        Returns:
        If a value is present it will be returned, otherwise the specified default value is returned.
      • toString

        public java.lang.String toString​(boolean detailed)
        Specified by:
        toString in interface GetWithoutException<I,​O>
        Returns:
        Returns a detailed string if specified, otherwise a shorter string is returned.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object