public <T extends TransportProtocol> boolean supportsProtocol(Class<T> protocol) { List<InvocableStreamPipesEntity> elements = buildInvocables(); return elements .stream() .allMatch(e -> e .getSupportedGrounding() .getTransportProtocols() .stream() .anyMatch(p -> protocol.isInstance(p))); } }
public <T extends TransportProtocol> boolean supportsProtocol(Class<T> protocol) { List<InvocableStreamPipesEntity> elements = buildInvocables(); return elements .stream() .allMatch(e -> e .getSupportedGrounding() .getTransportProtocols() .stream() .anyMatch(p -> protocol.isInstance(p))); } }
@Override public boolean match(EventGrounding offer, EventGrounding requirement, List<MatchingResultMessage> errorLog) { boolean match = MatchingUtils.nullCheckRightNullDisallowed(offer, requirement) || (matchProtocols(offer.getTransportProtocols(), requirement.getTransportProtocols(), errorLog) && matchFormats(offer.getTransportFormats(), requirement.getTransportFormats(), errorLog)); return match; }
@Override public boolean match(EventGrounding offer, EventGrounding requirement, List<MatchingResultMessage> errorLog) { boolean match = MatchingUtils.nullCheckRightNullDisallowed(offer, requirement) || (matchProtocols(offer.getTransportProtocols(), requirement.getTransportProtocols(), errorLog) && matchFormats(offer.getTransportFormats(), requirement.getTransportFormats(), errorLog)); return match; }
public EventGrounding(EventGrounding other) { super(other); this.transportProtocols = new Cloner().protocols(other.getTransportProtocols()); this.transportFormats = new Cloner().transportFormats(other.getTransportFormats()); }