Class CheckSum
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.CheckSum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UntypedData>
,java.lang.Iterable<CheckSumType>
,java.util.Collection<CheckSumType>
,java.util.Set<CheckSumType>
,java.util.SortedSet<CheckSumType>
public class CheckSum extends UntypedData implements java.util.SortedSet<CheckSumType>
Data type to manage the differentCheckSumType
s of a file.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
ALL_RIGHTS_RESERVED, EMPTY, string
-
-
Constructor Summary
Constructors Constructor Description CheckSum()
Construct aCheckSum
object with an empty list ofCheckSumType
s.
-
Method Summary
Modifier and Type Method Description boolean
add(CheckSumType e)
boolean
addAll(java.util.Collection<? extends CheckSumType> c)
CheckSumType
ceiling(CheckSumType type)
void
clear()
java.lang.Object
clone()
java.util.Comparator<? super CheckSumType>
comparator()
int
compareTo(UntypedData datatype)
boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection<?> c)
java.util.Iterator<CheckSumType>
descendingIterator()
java.util.NavigableSet<CheckSumType>
descendingSet()
boolean
equals(java.lang.Object object)
CheckSumType
first()
CheckSumType
floor(CheckSumType type)
java.util.Set<CheckSumType>
getSet()
int
hashCode()
java.util.SortedSet<CheckSumType>
headSet(CheckSumType toElement)
java.util.NavigableSet<CheckSumType>
headSet(CheckSumType toElement, boolean inclusive)
CheckSumType
higher(CheckSumType type)
boolean
isEmpty()
java.util.Iterator<CheckSumType>
iterator()
CheckSumType
last()
CheckSumType
lower(CheckSumType type)
CheckSumType
pollFirst()
CheckSumType
pollLast()
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> c)
boolean
retainAll(java.util.Collection<?> c)
void
setSet(java.util.TreeSet<CheckSumType> set)
int
size()
java.util.NavigableSet<CheckSumType>
subSet(CheckSumType fromElement, boolean fromInclusive, CheckSumType toElement, boolean toInclusive)
java.util.SortedSet<CheckSumType>
subSet(CheckSumType fromElement, CheckSumType toElement)
java.util.SortedSet<CheckSumType>
tailSet(CheckSumType fromElement)
java.util.NavigableSet<CheckSumType>
tailSet(CheckSumType fromElement, boolean inclusive)
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] a)
java.lang.String
toString()
-
Methods inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
getString, setString, toHTML
-
-
-
-
Constructor Detail
-
CheckSum
public CheckSum()
Construct aCheckSum
object with an empty list ofCheckSumType
s.
-
-
Method Detail
-
add
public boolean add(CheckSumType e)
- Specified by:
add
in interfacejava.util.Collection<CheckSumType>
- Specified by:
add
in interfacejava.util.Set<CheckSumType>
-
addAll
public boolean addAll(java.util.Collection<? extends CheckSumType> c)
- Specified by:
addAll
in interfacejava.util.Collection<CheckSumType>
- Specified by:
addAll
in interfacejava.util.Set<CheckSumType>
-
ceiling
public CheckSumType ceiling(CheckSumType type)
- Parameters:
type
- the type to match- Returns:
CheckSumType
- See Also:
TreeSet.ceiling(java.lang.Object)
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Collection<CheckSumType>
- Specified by:
clear
in interfacejava.util.Set<CheckSumType>
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.lang.Object
- Returns:
Object
- See Also:
TreeSet.clone()
-
comparator
public java.util.Comparator<? super CheckSumType> comparator()
- Specified by:
comparator
in interfacejava.util.SortedSet<CheckSumType>
- Returns:
Comparator
ofCheckSumType
- See Also:
TreeSet.comparator()
-
compareTo
public int compareTo(UntypedData datatype)
- Specified by:
compareTo
in interfacejava.lang.Comparable<UntypedData>
- Overrides:
compareTo
in classUntypedData
-
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains
in interfacejava.util.Collection<CheckSumType>
- Specified by:
contains
in interfacejava.util.Set<CheckSumType>
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
- Specified by:
containsAll
in interfacejava.util.Collection<CheckSumType>
- Specified by:
containsAll
in interfacejava.util.Set<CheckSumType>
-
descendingIterator
public java.util.Iterator<CheckSumType> descendingIterator()
- Returns:
Iterator
ofCheckSumType
- See Also:
TreeSet.descendingIterator()
-
descendingSet
public java.util.NavigableSet<CheckSumType> descendingSet()
- Returns:
NavigableSet
ofCheckSumType
- See Also:
TreeSet.descendingSet()
-
equals
public boolean equals(java.lang.Object object)
- Specified by:
equals
in interfacejava.util.Collection<CheckSumType>
- Specified by:
equals
in interfacejava.util.Set<CheckSumType>
- Overrides:
equals
in classUntypedData
- Parameters:
object
- the object to compare- Returns:
- true or false
- See Also:
AbstractSet.equals(java.lang.Object)
-
first
public CheckSumType first()
- Specified by:
first
in interfacejava.util.SortedSet<CheckSumType>
- Returns:
CheckSumType
- See Also:
TreeSet.first()
-
floor
public CheckSumType floor(CheckSumType type)
- Parameters:
type
- the type to match- Returns:
CheckSumType
- See Also:
TreeSet.floor(java.lang.Object)
-
getSet
public java.util.Set<CheckSumType> getSet()
- Returns:
- the _set
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Collection<CheckSumType>
- Specified by:
hashCode
in interfacejava.util.Set<CheckSumType>
- Overrides:
hashCode
in classUntypedData
- Returns:
- hashCode
- See Also:
AbstractSet.hashCode()
-
headSet
public java.util.SortedSet<CheckSumType> headSet(CheckSumType toElement)
- Specified by:
headSet
in interfacejava.util.SortedSet<CheckSumType>
- Parameters:
toElement
- the type to match- Returns:
SortedSet
ofCheckSumType
- See Also:
TreeSet.headSet(java.lang.Object)
-
headSet
public java.util.NavigableSet<CheckSumType> headSet(CheckSumType toElement, boolean inclusive)
- Parameters:
toElement
- the type to matchinclusive
- if inclusive or not- Returns:
NavigableSet
ofCheckSumType
- See Also:
TreeSet.headSet(java.lang.Object, boolean)
-
higher
public CheckSumType higher(CheckSumType type)
- Parameters:
type
- the type to match- Returns:
CheckSumType
- See Also:
TreeSet.higher(java.lang.Object)
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Collection<CheckSumType>
- Specified by:
isEmpty
in interfacejava.util.Set<CheckSumType>
-
iterator
public java.util.Iterator<CheckSumType> iterator()
- Specified by:
iterator
in interfacejava.util.Collection<CheckSumType>
- Specified by:
iterator
in interfacejava.lang.Iterable<CheckSumType>
- Specified by:
iterator
in interfacejava.util.Set<CheckSumType>
-
last
public CheckSumType last()
- Specified by:
last
in interfacejava.util.SortedSet<CheckSumType>
- Returns:
CheckSumType
- See Also:
TreeSet.last()
-
lower
public CheckSumType lower(CheckSumType type)
- Parameters:
type
- the type to match- Returns:
CheckSumType
- See Also:
TreeSet.lower(java.lang.Object)
-
pollFirst
public CheckSumType pollFirst()
- Returns:
CheckSumType
- See Also:
TreeSet.pollFirst()
-
pollLast
public CheckSumType pollLast()
- Returns:
CheckSumType
- See Also:
TreeSet.pollLast()
-
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove
in interfacejava.util.Collection<CheckSumType>
- Specified by:
remove
in interfacejava.util.Set<CheckSumType>
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
- Specified by:
removeAll
in interfacejava.util.Collection<CheckSumType>
- Specified by:
removeAll
in interfacejava.util.Set<CheckSumType>
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
- Specified by:
retainAll
in interfacejava.util.Collection<CheckSumType>
- Specified by:
retainAll
in interfacejava.util.Set<CheckSumType>
-
setSet
public void setSet(java.util.TreeSet<CheckSumType> set)
- Parameters:
set
- the _set to set
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<CheckSumType>
- Specified by:
size
in interfacejava.util.Set<CheckSumType>
-
subSet
public java.util.NavigableSet<CheckSumType> subSet(CheckSumType fromElement, boolean fromInclusive, CheckSumType toElement, boolean toInclusive)
- Parameters:
fromElement
- the "from" type to matchfromInclusive
- if inclusive or nottoElement
- the "to" type to matchtoInclusive
- if inclusive or not- Returns:
NavigableSet
ofCheckSumType
- See Also:
TreeSet.subSet(java.lang.Object, boolean, java.lang.Object, boolean)
-
subSet
public java.util.SortedSet<CheckSumType> subSet(CheckSumType fromElement, CheckSumType toElement)
- Specified by:
subSet
in interfacejava.util.SortedSet<CheckSumType>
- Parameters:
fromElement
- the "from" type to matchtoElement
- the "to" type to match- Returns:
SortedSet
ofCheckSumType
- See Also:
TreeSet.subSet(java.lang.Object, java.lang.Object)
-
tailSet
public java.util.SortedSet<CheckSumType> tailSet(CheckSumType fromElement)
- Specified by:
tailSet
in interfacejava.util.SortedSet<CheckSumType>
- Parameters:
fromElement
- the "from" type to match- Returns:
SortedSet
ofCheckSumType
- See Also:
TreeSet.tailSet(java.lang.Object)
-
tailSet
public java.util.NavigableSet<CheckSumType> tailSet(CheckSumType fromElement, boolean inclusive)
- Parameters:
fromElement
- the "from" type to matchinclusive
- if inclusive or not- Returns:
NavigableSet
ofCheckSumType
- See Also:
TreeSet.tailSet(java.lang.Object, boolean)
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interfacejava.util.Collection<CheckSumType>
- Specified by:
toArray
in interfacejava.util.Set<CheckSumType>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray
in interfacejava.util.Collection<CheckSumType>
- Specified by:
toArray
in interfacejava.util.Set<CheckSumType>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classUntypedData
-
-