network.detectors
Class UserLoginElement
java.lang.Object
|
+--network.detectors.UserLoginElement
- All Implemented Interfaces:
- java.io.Serializable
- class UserLoginElement
- extends java.lang.Object
- implements java.io.Serializable
This class stores the tuple (user, num_attempts, time)
All times are in milliseconds
|
Field Summary |
(package private) int |
numAttempts
|
(package private) long |
time
|
(package private) java.lang.String |
user
|
|
Constructor Summary |
(package private) |
UserLoginElement(java.lang.String user,
int numAttempts,
long time)
|
|
Method Summary |
boolean |
equals(java.lang.Object object)
Checks to see if the given object matches this current objects user, number of login attempts and time |
java.lang.String |
toString()
Returns a string representation of this object |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
user
java.lang.String user
numAttempts
int numAttempts
time
long time
UserLoginElement
UserLoginElement(java.lang.String user,
int numAttempts,
long time)
equals
public boolean equals(java.lang.Object object)
- Checks to see if the given object matches this current objects user, number of login attempts and time
- Overrides:
equals in class java.lang.Object
- Parameters:
object - The object to check
- Returns:
- True if all values match, false otherwise
toString
public java.lang.String toString()
- Returns a string representation of this object
- Overrides:
toString in class java.lang.Object
- Returns:
- A String representing this object