public class Logs extends ArrayList<Log>
modCount
Constructor and Description |
---|
Logs()
Creates a new instance of Logs.
|
Logs(List<Log> logs) |
Logs(Log log)
Creates a new instance of Logs with one initial log.
|
Modifier and Type | Method and Description |
---|---|
void |
addLog(Log item)
Adds a log to the log collection.
|
boolean |
equals(Object o) |
Long |
getCount() |
List<Log> |
getLogList()
Returns a collection of Log.
|
List<Log> |
getLogs() |
int |
hashCode() |
void |
setCount(Long count) |
void |
setLogs(List<Log> items)
Sets the collection of logs.
|
static String |
toLogger(List<Log> data) |
static String |
toLogger(Logs data)
Creates a compact string representation for the log.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll
public Logs()
public Logs(Log log)
log
- Log initial elementpublic Long getCount()
public void setCount(Long count)
public List<Log> getLogList()
public void setLogs(List<Log> items)
items
- new log collectionpublic void addLog(Log item)
item
- the Log to addpublic static String toLogger(Logs data)
data
- Log to create the string representation forpublic boolean equals(Object o)
equals
in interface Collection<Log>
equals
in interface List<Log>
equals
in class AbstractList<Log>
public int hashCode()
hashCode
in interface Collection<Log>
hashCode
in interface List<Log>
hashCode
in class AbstractList<Log>
Copyright © 2010-2014 Michigan State University. All Rights Reserved.