return (mode.getBitDepth() >= 24);
return (mode.getBitDepth() < 0 || mode.getBitDepth() >= 24);
  public static java.util.List getAvailableDisplayModes() {    java.util.List modes = getDisplayModes();    final DisplayMode curMode = getCurrentDisplayMode();    // Filter everything which is higher frequency than the current    // display mode    modes = filterDisplayModes(modes, new DisplayModeFilter() {        public boolean filter(DisplayMode mode) {          return (mode.getRefreshRate() <= curMode.getRefreshRate());        }      });    // Filter everything that is not at least 24-bit    modes = filterDisplayModes(modes, new DisplayModeFilter() {        public boolean filter(DisplayMode mode) {          return (mode.getBitDepth() >= 24);        }      });    // Filter everything less than 640x480    modes = filterDisplayModes(modes, new DisplayModeFilter() {        public boolean filter(DisplayMode mode) {          return (mode.getWidth() >= 640 && mode.getHeight() >= 480);        }      });    if (modes.size() == 0) {      throw new RuntimeException("Couldn't find any valid display modes");    }    return modes;  }