Class Functions.InstanceOf<A,​B>

  • All Implemented Interfaces:
    java.util.function.Function<A,​Option<B>>
    Enclosing class:
    Functions

    static class Functions.InstanceOf<A,​B>
    extends java.lang.Object
    implements java.util.function.Function<A,​Option<B>>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Class<B> cls  
      (package private) static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      InstanceOf​(java.lang.Class<B> cls)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Option<B> apply​(A a)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Field Detail

      • cls

        private final java.lang.Class<B> cls
    • Constructor Detail

      • InstanceOf

        InstanceOf​(java.lang.Class<B> cls)
    • Method Detail

      • apply

        public Option<B> apply​(A a)
        Specified by:
        apply in interface java.util.function.Function<A,​B>
      • toString

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

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object