projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Gradle build file
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
core
/
event
/
SoneInsertedEvent.java
diff --git
a/src/main/java/net/pterodactylus/sone/core/event/SoneInsertedEvent.java
b/src/main/java/net/pterodactylus/sone/core/event/SoneInsertedEvent.java
index
8a4280d
..
8b3f79e
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/core/event/SoneInsertedEvent.java
+++ b/
src/main/java/net/pterodactylus/sone/core/event/SoneInsertedEvent.java
@@
-1,5
+1,5
@@
/*
/*
- * Sone - SoneInsertedEvent.java - Copyright © 2013 David Roden
+ * Sone - SoneInsertedEvent.java - Copyright © 2013
–2016
David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-26,33
+26,21
@@
import net.pterodactylus.sone.data.Sone;
*/
public class SoneInsertedEvent extends SoneEvent {
*/
public class SoneInsertedEvent extends SoneEvent {
- /** The duration of the insert. */
private final long insertDuration;
private final long insertDuration;
+ private final String insertFingerprint;
- /**
- * Creates a new “Sone was inserted” event.
- *
- * @param sone
- * The Sone that was inserted
- * @param insertDuration
- * The duration of the insert (in milliseconds)
- */
- public SoneInsertedEvent(Sone sone, long insertDuration) {
+ public SoneInsertedEvent(Sone sone, long insertDuration, String insertFingerprint) {
super(sone);
this.insertDuration = insertDuration;
super(sone);
this.insertDuration = insertDuration;
+ this.insertFingerprint = insertFingerprint;
}
}
- //
- // ACCESSORS
- //
-
- /**
- * Returns the duration of the insert.
- *
- * @return The duration of the insert (in milliseconds)
- */
public long insertDuration() {
return insertDuration;
}
public long insertDuration() {
return insertDuration;
}
+ public String insertFingerprint() {
+ return insertFingerprint;
+ }
+
}
}