* {@code false} otherwise
*/
public boolean isModifiedSone(Sone sone) {
- return (soneInserters.containsKey(sone)) ? soneInserters.get(sone).isModified() : false;
+ return soneInserters.containsKey(sone) && soneInserters.get(sone).isModified();
}
/**
@Override
public boolean apply(Post post) {
- return (post == null) ? false : post.getTime() <= System.currentTimeMillis();
+ return (post != null) && (post.getTime() <= System.currentTimeMillis());
}
};
@Override
public boolean apply(PostReply postReply) {
- return (postReply == null) ? false : postReply.getPost().isPresent();
+ return (postReply != null) && postReply.getPost().isPresent();
}
};
*/
@Override
public boolean apply(Reply<?> reply) {
- return (reply == null) ? false : reply.getTime() <= System.currentTimeMillis();
+ return (reply != null) && (reply.getTime() <= System.currentTimeMillis());
}
};
@Override
public boolean apply(Sone sone) {
- return (sone == null) ? false : sone.getTime() != 0;
+ return (sone != null) && (sone.getTime() != 0);
}
};
@Override
public boolean apply(Sone sone) {
- return (sone == null) ? false : sone.getIdentity() instanceof OwnIdentity;
+ return (sone != null) && (sone.getIdentity() instanceof OwnIdentity);
}
};
@Override
public boolean apply(Sone sone) {
- return (sone == null) ? false : !sone.getRootAlbum().getAlbums().isEmpty();
+ return (sone != null) && !sone.getRootAlbum().getAlbums().isEmpty();
}
};
@Override
public boolean apply(Hit<?> hit) {
- return (hit == null) ? false : hit.getScore() > 0;
+ return (hit != null) && (hit.getScore() > 0);
}
};
*/
@Override
public boolean isLinkExcepted(URI link) {
- return (page instanceof FreenetPage) ? ((FreenetPage) page).isLinkExcepted(link) : false;
+ return (page instanceof FreenetPage) && ((FreenetPage) page).isLinkExcepted(link);
}
}