public static boolean hasMultipleComponentTypes(Calendar calendar) { String found = null; for (Object component: calendar.getComponents()) { if (component instanceof VTimeZone) { continue; } if (found == null) { found = ((CalendarComponent)component).getName(); continue; } if (! found.equals(((CalendarComponent)component).getName())) { return true; } } return false; }
public static boolean hasMultipleComponentTypes(Calendar calendar) { String found = null; for (Object component: calendar.getComponents()) { if (component instanceof VTimeZone) { continue; } if (found == null) { found = ((CalendarComponent)component).getName(); continue; } if (! found.equals(((CalendarComponent)component).getName())) { return true; } } return false; }
public static boolean hasSupportedComponent(Calendar calendar) { for (Object component: calendar.getComponents()) { if (isSupportedComponent(((CalendarComponent)component).getName())) { return true; } } return false; }
public static boolean hasSupportedComponent(Calendar calendar) { for (Object component: calendar.getComponents()) { if (isSupportedComponent(((CalendarComponent)component).getName())) { return true; } } return false; }
if(Component.VTIMEZONE.equals(comp.getName())) { Property tzId = comp.getProperties().getProperty(Property.TZID); if (! tzIdx.containsKey(tzId.getValue())) {
if(Component.VTIMEZONE.equals(comp.getName())) { Property tzId = comp.getProperties().getProperty(Property.TZID); if (! tzIdx.containsKey(tzId.getValue())) {