code: public static boolean isUniCase(String value) {
          if (value.toLowerCase().equals(value) || value.toUpperCase().equals(value)) {
              return true;
          }
          return false;
      }
docs: Return true if the passed value is all lower or all upper case.