public class ChannelUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Collection<Channel> |
filterbyElements(Collection<Channel> channels,
Collection<String> propNames,
Collection<String> tagNames)
Given a Collection of channels returns a new collection of channels
containing only those channels which have all the tags in the
tagNames
|
static Collection<Channel> |
filterbyProperties(Collection<Channel> channels,
Collection<String> propNames)
Given a Collection of channels returns a new collection of channels
containing only those channels which have all the properties in the
propNames
|
static Collection<Channel> |
filterbyTags(Collection<Channel> channels,
Collection<String> tagNames)
Given a Collection of channels returns a new collection of channels
containing only those channels which have all the tags in the
tagNames
|
static Collection<String> |
getAllTagNames(Collection<Channel> channels)
Return a union of tag names associated with channels
|
static Collection<String> |
getChannelNames(Collection<Channel> channels)
Returns all the channel Names in the given Collection of channels
|
static Property |
getProperty(Channel channel,
String propertyName)
Deprecated.
|
static Collection<String> |
getPropertyNames(Channel channel)
Return a list of property names associated with this channel
|
static Collection<String> |
getPropertyNames(Collection<Channel> channels)
Return a union of property names associated with channels
|
static Collection<String> |
getPropValues(Collection<Channel> channels,
String propertyName) |
static Tag |
getTag(Channel channel,
String tagName)
Deprecated.
|
static Collection<String> |
getTagNames(Channel channel)
Return a list of tag names associated with this channel
|
static Collection<Channel> |
toChannels(Collection<Channel.Builder> channelBuilders)
Returns a list of
Channel built from the list of
Channel.Builders |
static List<XmlChannel> |
toCollectionXmlChannels(Collection<Channel.Builder> channelBuilders)
Returns a list of
Channel built from the list of
Channel.Builders |
public static Collection<String> getTagNames(Channel channel)
channel - - channel to be processedpublic static Collection<String> getAllTagNames(Collection<Channel> channels)
channels - - list of channelspublic static Collection<String> getPropertyNames(Channel channel)
channel - - channel to be processed@Deprecated public static Tag getTag(Channel channel, String tagName)
channel - - channeltagName - - tag name@Deprecated public static Property getProperty(Channel channel, String propertyName)
channel - - channelpropertyName - - property namepublic static Collection<String> getPropertyNames(Collection<Channel> channels)
channels - - list of channelspublic static Collection<String> getPropValues(Collection<Channel> channels, String propertyName)
public static Collection<String> getChannelNames(Collection<Channel> channels)
channels - - list of channelspublic static Collection<Channel> filterbyProperties(Collection<Channel> channels, Collection<String> propNames)
channels - - the input list of channelspropNames - - the list of properties required on all channelspublic static Collection<Channel> filterbyTags(Collection<Channel> channels, Collection<String> tagNames)
channels - - the input list of channelstagNames - - the list of tags required on all channelspublic static Collection<Channel> filterbyElements(Collection<Channel> channels, Collection<String> propNames, Collection<String> tagNames)
channels - - the input list of channelspropNames - - the list of properties required on all channelstagNames - - the list of tags required on all channelspublic static Collection<Channel> toChannels(Collection<Channel.Builder> channelBuilders)
Channel built from the list of
Channel.BuilderschannelBuilders - - list of Channel.Builder to be built.Channel built from the channelBuilderspublic static List<XmlChannel> toCollectionXmlChannels(Collection<Channel.Builder> channelBuilders)
Channel built from the list of
Channel.BuilderschannelBuilders - - list of Channel.Builder to be built.Channel built from the channelBuildersCopyright © 2016. All Rights Reserved.