Class CssEnumUtil



  • public class CssEnumUtil
    extends java.lang.Object
    A utility class for css enum classes.
    Since:
    1.0.0
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean contains​(java.lang.String cssValue, java.util.Collection<java.lang.String> cssValues, int lowestLength, int highestLength)
      checks whether the given cssValues contains the given cssValue.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • contains

        public static boolean contains​(java.lang.String cssValue,
                                       java.util.Collection<java.lang.String> cssValues,
                                       int lowestLength,
                                       int highestLength)
        checks whether the given cssValues contains the given cssValue.
        Parameters:
        cssValue - the value to be checked.
        cssValues - the cssValue will be checked in this cssValues .
        lowestLength - the lowest length of the string contained in the given cssValues.
        highestLength - the highest length of the string contained in the given cssValues.
        Returns:
        true if the given cssValues contains the given cssValue, and the length of cssValue is not less than lowestLength and not greater than highestLength.
        Since:
        1.0.0