public class NotificationResult extends Object implements Comparable<NotificationResult>
eu.dnetlib.api.functionality.NotificationService,
eu.dnetlib.functionality.notification.executor.NotificationQueryExecutor,
NotificationQuery,
NotificationSchedule,
NotificationEvent,
NotificationSubscription| Constructor and Description |
|---|
NotificationResult()
Construct a new notification result with query identifier, date, result identifier and result name set to null and value set to zero.
|
NotificationResult(String queryId,
Date date,
String resultId,
String name,
int value)
Construct a new notification result.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(NotificationResult result) |
boolean |
equals(Object object) |
Date |
getDate()
Get the date of the event of this result.
|
String |
getName()
Get the name.
|
String |
getQueryId()
Get the query of the event of this result.
|
String |
getResultId()
Get the result identifier.
|
int |
getValue()
Get the value of this result.
|
int |
hashCode() |
void |
setDate(Date date)
Set the date of the event of this result.
|
void |
setName(String name)
Set the name of this result.
|
void |
setQueryId(String queryId)
Set the query of the event of this result.
|
void |
setResultId(String resultId)
Set the result identifier.
|
void |
setValue(int value)
Set the value of this result.
|
String |
toString() |
public NotificationResult(String queryId, Date date, String resultId, String name, int value)
queryId - the unique identifier of the query of the event of this resultdate - the date of the event of this resultresultId - the unique identifier of this resultname - the name of this resultvalue - the value of this resultpublic NotificationResult()
public String getQueryId()
public void setQueryId(String queryId)
queryId - the unique identifier of the query of the event of this resultpublic Date getDate()
public void setDate(Date date)
date - the date of the event of this resultpublic String getResultId()
public void setResultId(String resultId)
resultId - the unique identifier of this resultpublic String getName()
public void setName(String name)
name - the name of this resultpublic int getValue()
public void setValue(int value)
value - the value of this resultpublic int compareTo(NotificationResult result)
compareTo in interface Comparable<NotificationResult>Copyright © 2017. All rights reserved.