@Test public void containsStringFalse() { Assert.assertFalse( utils.containsString( Arrays.asList( new StringType( "abc" ), new StringType( "efg" ) ), "test" ) ); }
@Override public boolean containsString( @Nonnull List<? extends IPrimitiveType<String>> stringList, @Nullable String value ) { if ( value == null ) { return false; } return stringList.stream().anyMatch( s -> value.equals( s.getValue() ) ); }
Dstu3FhirResourceDhisToFhirTransformerUtils extends AbstractFhirResourceDhisToFhirTransformerUtils { @Override public boolean containsString( @Nonnull List<? extends IPrimitiveType<String>> stringList, @Nullable String value ) { if ( value == null ) { return false; } return stringList.stream().anyMatch( s -> value.equals( s.getValue() ) ); } }
Dstu3FhirResourceDhisToFhirTransformerUtils extends AbstractFhirResourceDhisToFhirTransformerUtils { @Override public boolean containsString( @Nonnull List<? extends IPrimitiveType<String>> stringList, @Nullable String value ) { if ( value == null ) { return false; } return stringList.stream().anyMatch( s -> value.equals( s.getValue() ) ); } Dstu3FhirResourceDhisToFhirTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext ); }
Dstu3FhirResourceDhisToFhirTransformerUtils extends AbstractFhirResourceDhisToFhirTransformerUtils { @Override public boolean containsString( @Nonnull List<? extends IPrimitiveType<String>> stringList, @Nullable String value ) { if ( value == null ) { return false; } return stringList.stream().anyMatch( s -> value.equals( s.getValue() ) ); } Dstu3FhirResourceDhisToFhirTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext ); @Nonnull @Override Set<FhirVersion> getFhirVersions(); @Nonnull @Override IBaseResource createResource( @Nonnull String resourceType ); @Nonnull @Override IBaseElement createType( @Nonnull String fhirType ); @Nonnull @Override IBaseBundle createBundle( @Nonnull List<IBaseResource> result ); @Nonnull @Override ICompositeType createCodeableConcept(); @Nonnull @Override IBaseReference createReference( @Nonnull IBaseResource resource ); @Override boolean containsString( @Nonnull List<? extends IPrimitiveType<String>> stringList, @Nullable String value ); @Override boolean equalsDeep( @Nonnull IBase base1, @Nonnull IBase base2 ); }
Dstu3FhirResourceDhisToFhirTransformerUtils extends AbstractFhirResourceDhisToFhirTransformerUtils { @Override public boolean containsString( @Nonnull List<? extends IPrimitiveType<String>> stringList, @Nullable String value ) { if ( value == null ) { return false; } return stringList.stream().anyMatch( s -> value.equals( s.getValue() ) ); } Dstu3FhirResourceDhisToFhirTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext ); @Nonnull @Override Set<FhirVersion> getFhirVersions(); @Nonnull @Override IBaseResource createResource( @Nonnull String resourceType ); @Nonnull @Override IBaseElement createType( @Nonnull String fhirType ); @Nonnull @Override IBaseBundle createBundle( @Nonnull List<IBaseResource> result ); @Nonnull @Override ICompositeType createCodeableConcept(); @Nonnull @Override IBaseReference createReference( @Nonnull IBaseResource resource ); @Override boolean containsString( @Nonnull List<? extends IPrimitiveType<String>> stringList, @Nullable String value ); @Override boolean equalsDeep( @Nonnull IBase base1, @Nonnull IBase base2 );  }