I'm looking for a preexisting functional interface like Predicate, but one whose test method takes no arguments.
            Asked
            
        
        
            Active
            
        
            Viewed 7,127 times
        
    53
            
            
         
    
    
        Zoe
        
- 27,060
- 21
- 118
- 148
 
    
    
        Greg Valvo
        
- 1,069
- 1
- 9
- 13
1 Answers
53
            You're looking for BooleanSupplier.
https://docs.oracle.com/javase/8/docs/api/java/util/function/BooleanSupplier.html
 
    
    
        Paul Boddington
        
- 37,127
- 10
- 65
- 116
- 
                    4Thank you for the clear answer to the "unclear" question – c0der Mar 01 '17 at 12:11
- 
                    3But BooleanSupplier is missing all the utility methods like "and", "negate" and "or" :( – Tamir Adler Jan 19 '21 at 19:04