All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.snapscript.core.convert.BooleanMatcher Maven / Gradle / Ivy

package org.snapscript.core.convert;

public class BooleanMatcher {

   private static final String TRUE = "true";
   private static final String FALSE = "false";
   
   public BooleanMatcher() {
      super();
   }
   
   public boolean matchBoolean(String text) {
      if(text != null) {
         if(text.equalsIgnoreCase(TRUE)) {
            return true;
         }
         if(text.equalsIgnoreCase(FALSE)) {
            return true;
         }
      }
      return false;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy