An IRemoteSystemFilter that limits the set of discoverable remote systems by allowing only those of specific device types.
public final class RemoteSystemKindFilter implements IRemoteSystemFilter
Initializes an instance of the RemoteSystemKindFilter class with a list of string representations of device types to target.
public RemoteSystemKindFilter(List<RemoteSystemKinds> kinds)
Parameters
kinds - A list of string representations of the device types to target. These strings should conform to the values in the RemoteSystemKinds enum.
Returns a list of the kinds of remote systems being targeted.
public List<RemoteSystemKinds> getKinds()
Return value
A list of the kinds of remote systems being targeted.
Check whether a remote system passes through the filter.
public boolean filter(RemoteSystem remoteSystem)
Parameters
filter - the RemoteSystem to check
Return value
true if remoteSystem passes, otherwise false