Class CharacterCaseUtil

java.lang.Object
me.gosimple.nbvcxz.resources.CharacterCaseUtil

public class CharacterCaseUtil
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    CharacterCaseUtil()  
  • Method Summary

    Modifier and Type Method Description
    static double fractionOfStringUppercase​(java.lang.String input)
    Of the characters in the string that have an uppercase form, how many are uppercased?

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • fractionOfStringUppercase

      public static double fractionOfStringUppercase​(java.lang.String input)
      Of the characters in the string that have an uppercase form, how many are uppercased?
      Parameters:
      input - Input string.
      Returns:
      The fraction of uppercased characters, with 0.0d meaning that all uppercasable characters are in lowercase and 1.0d that all of them are in uppercase.