TwitchService.java 文件源码

java
阅读 19 收藏 0 点赞 0 评论 0

项目:livestreamer_twitch_gui 作者:
public TwitchService(final String name, final String url) {
    this.name = new SimpleStringProperty(name);
    this.url = new SimpleStringProperty(url);
    this.channelProperty = new SimpleObjectProperty<>(new SortedList<>(this.channelList));
    this.sortChannels = new SimpleBooleanProperty();
    this.sortChannels.bind(Settings.getInstance().sortTwitchProperty());
    this.sortChannels.addListener((observable, oldValue, newVale) -> this.changeComparator(newVale));
    this.channelProperty.get().addListener((ListChangeListener<IChannel>) change -> {
        change.next();
        this.changeComparator(this.sortChannels.get());
    });
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号