@Test public void testTargets() throws Exception { assertEquals(43, mmsiInTestData.length); assertEquals(43, aisTrackService.numberOfTargets()); assertEquals(43, aisTrackService.targets().size()); }
public Set<TargetInfo> targets() { return tracker .streamSequential() .collect(Collectors.toSet()); }
AisTrackService { public Set<TargetInfo> targets() { return tracker .streamSequential() .collect(Collectors.toSet()); } }
AisTrackService { public Set<TargetInfo> targets() { return tracker .streamSequential() .collect(Collectors.toSet()); } AisTrackService();  AisTrackService(Predicate<AisPacket> trackerInputPacketFilter); }
AisTrackService { public Set<TargetInfo> targets() { return tracker .streamSequential() .collect(Collectors.toSet()); } AisTrackService();  AisTrackService(Predicate<AisPacket> trackerInputPacketFilter); int numberOfTargets(); int numberOfTargets(Predicate<? super AisPacketSource> packetSourceFilter); Set<TargetInfo> targets(); Set<TargetInfo> targets(Predicate<? super AisPacketSource> packetSourceFilter, Predicate<? super TargetInfo> targetInfoFilter); TargetInfo target(int mmsi, Predicate<? super AisPacketSource> packetSourceFilter); void start(); void stop(); static void main(String[] args); }
AisTrackService { public Set<TargetInfo> targets() { return tracker .streamSequential() .collect(Collectors.toSet()); } AisTrackService();  AisTrackService(Predicate<AisPacket> trackerInputPacketFilter); int numberOfTargets(); int numberOfTargets(Predicate<? super AisPacketSource> packetSourceFilter); Set<TargetInfo> targets(); Set<TargetInfo> targets(Predicate<? super AisPacketSource> packetSourceFilter, Predicate<? super TargetInfo> targetInfoFilter); TargetInfo target(int mmsi, Predicate<? super AisPacketSource> packetSourceFilter); void start(); void stop(); static void main(String[] args);  }