Package org.derive4j

Class Visibilities.CaseOfMatchers.PartialMatcher<R>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Visibility _visibility  
      private java.util.function.Supplier<R> Package  
      private java.util.function.Supplier<R> Same  
      private java.util.function.Supplier<R> Smart  
    • Constructor Summary

      Constructors 
      Constructor Description
      PartialMatcher​(Visibility _visibility, java.util.function.Supplier<R> Same, java.util.function.Supplier<R> Package, java.util.function.Supplier<R> Smart)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      R otherwise​(java.util.function.Supplier<R> otherwise)  
      R otherwise_​(R r)  
      java.util.Optional<R> otherwiseEmpty()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _visibility

        private final Visibility _visibility
      • Same

        private final java.util.function.Supplier<R> Same
      • Package

        private final java.util.function.Supplier<R> Package
      • Smart

        private final java.util.function.Supplier<R> Smart
    • Constructor Detail

      • PartialMatcher

        PartialMatcher​(Visibility _visibility,
                       java.util.function.Supplier<R> Same,
                       java.util.function.Supplier<R> Package,
                       java.util.function.Supplier<R> Smart)
    • Method Detail

      • otherwise

        public final R otherwise​(java.util.function.Supplier<R> otherwise)
      • otherwise_

        public final R otherwise_​(R r)
      • otherwiseEmpty

        public final java.util.Optional<R> otherwiseEmpty()