@Test public void parseFromNullableStringWithMultipleStatuses() { KieContainerStatusFilter filter = KieContainerStatusFilter.parseFromNullableString("creating,started,failed"); Assertions.assertThat(filter).isEqualTo( new KieContainerStatusFilter(KieContainerStatus.CREATING, KieContainerStatus.STARTED, KieContainerStatus.FAILED)); }
public static KieContainerStatusFilter parseFromNullableString(String inputStr) { if (inputStr == null || inputStr.isEmpty()) { return ACCEPT_ALL; } List<KieContainerStatus> statuses = new ArrayList<KieContainerStatus>(); String[] strStatuses = inputStr.split(","); for (String strStatus : strStatuses) { statuses.add(KieContainerStatus.valueOf(strStatus.toUpperCase())); } return new KieContainerStatusFilter(statuses); }
KieContainerStatusFilter { public static KieContainerStatusFilter parseFromNullableString(String inputStr) { if (inputStr == null || inputStr.isEmpty()) { return ACCEPT_ALL; } List<KieContainerStatus> statuses = new ArrayList<KieContainerStatus>(); String[] strStatuses = inputStr.split(","); for (String strStatus : strStatuses) { statuses.add(KieContainerStatus.valueOf(strStatus.toUpperCase())); } return new KieContainerStatusFilter(statuses); } }
KieContainerStatusFilter { public static KieContainerStatusFilter parseFromNullableString(String inputStr) { if (inputStr == null || inputStr.isEmpty()) { return ACCEPT_ALL; } List<KieContainerStatus> statuses = new ArrayList<KieContainerStatus>(); String[] strStatuses = inputStr.split(","); for (String strStatus : strStatuses) { statuses.add(KieContainerStatus.valueOf(strStatus.toUpperCase())); } return new KieContainerStatusFilter(statuses); } KieContainerStatusFilter();  KieContainerStatusFilter(List<KieContainerStatus> acceptedStatuses);  KieContainerStatusFilter(KieContainerStatus... acceptedStatuses); }
KieContainerStatusFilter { public static KieContainerStatusFilter parseFromNullableString(String inputStr) { if (inputStr == null || inputStr.isEmpty()) { return ACCEPT_ALL; } List<KieContainerStatus> statuses = new ArrayList<KieContainerStatus>(); String[] strStatuses = inputStr.split(","); for (String strStatus : strStatuses) { statuses.add(KieContainerStatus.valueOf(strStatus.toUpperCase())); } return new KieContainerStatusFilter(statuses); } KieContainerStatusFilter();  KieContainerStatusFilter(List<KieContainerStatus> acceptedStatuses);  KieContainerStatusFilter(KieContainerStatus... acceptedStatuses); static KieContainerStatusFilter parseFromNullableString(String inputStr); List<KieContainerStatus> getAcceptedStatuses(); boolean accept(KieContainerStatus status); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
KieContainerStatusFilter { public static KieContainerStatusFilter parseFromNullableString(String inputStr) { if (inputStr == null || inputStr.isEmpty()) { return ACCEPT_ALL; } List<KieContainerStatus> statuses = new ArrayList<KieContainerStatus>(); String[] strStatuses = inputStr.split(","); for (String strStatus : strStatuses) { statuses.add(KieContainerStatus.valueOf(strStatus.toUpperCase())); } return new KieContainerStatusFilter(statuses); } KieContainerStatusFilter();  KieContainerStatusFilter(List<KieContainerStatus> acceptedStatuses);  KieContainerStatusFilter(KieContainerStatus... acceptedStatuses); static KieContainerStatusFilter parseFromNullableString(String inputStr); List<KieContainerStatus> getAcceptedStatuses(); boolean accept(KieContainerStatus status); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); static final KieContainerStatusFilter ACCEPT_ALL; }