Enum Class Breakpoint

java.lang.Object
java.lang.Enum<Breakpoint>
com.oorian.bootstrap.enums.Breakpoint
All Implemented Interfaces:
Serializable, Comparable<Breakpoint>, Constable

public enum Breakpoint extends Enum<Breakpoint>
Bootstrap responsive breakpoints for grid system and responsive utilities.

These breakpoints define the screen widths at which layouts change:

  • XS: Extra small, less than 576px
  • SM: Small, 576px and up
  • MD: Medium, 768px and up
  • LG: Large, 992px and up
  • XL: Extra large, 1200px and up
  • XXL: Extra extra large, 1400px and up
  • Enum Constant Details

  • Method Details

    • values

      public static Breakpoint[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Breakpoint valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
    • getInfix

      public String getInfix()
      Gets the infix for responsive classes (e.g., "-md-" for medium breakpoint).
      Returns:
      The infix string, or empty string for XS