class FindMatchingChannelHelper {

    public static boolean matches(final MbusChannelElementsDto mbusChannelElements,
            final ChannelElementValuesDto channelElementValues) {

        if (mbusChannelElements.hasPrimaryAddress() && mbusChannelElements.getPrimaryAddress() > 0) {
            return wiredMbusMatches(mbusChannelElements, channelElementValues);
        }

        /*
         * If the M-Bus ShortID matches, assume the M-Bus device is configured on the
         * channel. For wireless devices this means a full match, since the primary
         * address would always be 0.
         */
        return mbusShortIdMatches(mbusChannelElements, channelElementValues);
    }

    private  FindMatchingChannelHelper();

}