projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add interface between freenet interface and Sone downloader.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
data
/
Sone.java
diff --git
a/src/main/java/net/pterodactylus/sone/data/Sone.java
b/src/main/java/net/pterodactylus/sone/data/Sone.java
index
d7a7dee
..
2263192
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/Sone.java
+++ b/
src/main/java/net/pterodactylus/sone/data/Sone.java
@@
-144,7
+144,7
@@
public interface Sone extends Identified, Fingerprintable, Comparable<Sone> {
@Override
public boolean apply(Sone sone) {
@Override
public boolean apply(Sone sone) {
- return (sone
== null) ? false : sone.getTime() != 0
;
+ return (sone
!= null) && (sone.getTime() != 0)
;
}
};
}
};
@@
-153,7
+153,7
@@
public interface Sone extends Identified, Fingerprintable, Comparable<Sone> {
@Override
public boolean apply(Sone sone) {
@Override
public boolean apply(Sone sone) {
- return (sone
== null) ? false : sone.getIdentity() instanceof OwnIdentity
;
+ return (sone
!= null) && (sone.getIdentity() instanceof OwnIdentity)
;
}
};
}
};
@@
-163,7
+163,7
@@
public interface Sone extends Identified, Fingerprintable, Comparable<Sone> {
@Override
public boolean apply(Sone sone) {
@Override
public boolean apply(Sone sone) {
- return (sone
== null) ? false :
!sone.getRootAlbum().getAlbums().isEmpty();
+ return (sone
!= null) &&
!sone.getRootAlbum().getAlbums().isEmpty();
}
};
}
};
@@
-535,7
+535,7
@@
public interface Sone extends Identified, Fingerprintable, Comparable<Sone> {
*
* @return The options of this Sone
*/
*
* @return The options of this Sone
*/
- Options getOptions();
+
Sone
Options getOptions();
/**
* Sets the options of this Sone.
/**
* Sets the options of this Sone.
@@
-544,6
+544,6
@@
public interface Sone extends Identified, Fingerprintable, Comparable<Sone> {
* The options of this Sone
*/
/* TODO - remove this method again, maybe add an option provider */
* The options of this Sone
*/
/* TODO - remove this method again, maybe add an option provider */
- void setOptions(Options options);
+ void setOptions(
Sone
Options options);
}
}