Coverage Report - liquibase.statement.DatabaseFunction
 
Classes in this File Line Coverage Branch Coverage Complexity
DatabaseFunction
55%
5/9
0%
0/2
1.4
 
 1  
 package liquibase.statement;
 2  
 
 3  
 public class DatabaseFunction {
 4  
 
 5  
     private String value;
 6  
 
 7  86
     public DatabaseFunction(String value) {
 8  86
         this.value = value;
 9  86
     }
 10  
 
 11  
     public String getValue() {
 12  27
         return value;
 13  
     }
 14  
 
 15  
     @Override
 16  
     public String toString() {
 17  27
         return getValue();
 18  
     }
 19  
 
 20  
     @Override
 21  
     public boolean equals(Object obj) {
 22  0
         if (obj instanceof DatabaseFunction) {
 23  0
             return this.toString().equals(obj.toString());
 24  
         } else {
 25  0
             return super.equals(obj);
 26  
         }
 27  
     }
 28  
 
 29  
     @Override
 30  
     public int hashCode() {
 31  0
         return this.toString().hashCode();
 32  
     }
 33  
 }