ResourceBag function ( Predicate < Map . Entry < ResourceType , Double >> arg0 ) { return new ResourceBag ( resourceVectors . entrySet ( ) . stream ( ) . filter ( arg0 ) . collect ( toMap ( Map . Entry :: getKey , Map . Entry :: getValue ) ) ) ; }
filters bag resources by predicate . concode_field_sep ResourceBag LARGE concode_elem_sep Predicate<Map.Entry<ResourceType,Double>> IS_MESOS_REVOCABLE concode_elem_sep Predicate<Map.Entry<ResourceType,Double>> IS_POSITIVE concode_elem_sep ResourceBag EMPTY concode_elem_sep ResourceBag MEDIUM concode_elem_sep ResourceBag XLARGE concode_elem_sep Predicate<Map.Entry<ResourceType,Double>> IS_NEGATIVE concode_elem_sep Map<ResourceType,Double> resourceVectors concode_elem_sep ResourceBag SMALL concode_field_sep ResourceBag add concode_elem_sep Map<ResourceType,Double> getResourceVectors concode_elem_sep ResourceBag binaryOp concode_elem_sep ResourceBag max concode_elem_sep Double valueOf concode_elem_sep int hashCode concode_elem_sep ResourceBag subtract concode_elem_sep boolean equals concode_elem_sep ResourceBag scale concode_elem_sep ResourceBag divide concode_elem_sep String toString concode_elem_sep Stream<Map.Entry<ResourceType,Double>> streamResourceVectors