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 differentCheckSumTypes 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 aCheckSumobject with an empty list ofCheckSumTypes.
-
Method Summary
Modifier and Type Method Description booleanadd(CheckSumType e)booleanaddAll(java.util.Collection<? extends CheckSumType> c)CheckSumTypeceiling(CheckSumType type)voidclear()java.lang.Objectclone()java.util.Comparator<? super CheckSumType>comparator()intcompareTo(UntypedData datatype)booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)java.util.Iterator<CheckSumType>descendingIterator()java.util.NavigableSet<CheckSumType>descendingSet()booleanequals(java.lang.Object object)CheckSumTypefirst()CheckSumTypefloor(CheckSumType type)java.util.Set<CheckSumType>getSet()inthashCode()java.util.SortedSet<CheckSumType>headSet(CheckSumType toElement)java.util.NavigableSet<CheckSumType>headSet(CheckSumType toElement, boolean inclusive)CheckSumTypehigher(CheckSumType type)booleanisEmpty()java.util.Iterator<CheckSumType>iterator()CheckSumTypelast()CheckSumTypelower(CheckSumType type)CheckSumTypepollFirst()CheckSumTypepollLast()booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(java.util.Collection<?> c)voidsetSet(java.util.TreeSet<CheckSumType> set)intsize()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.StringtoString()-
Methods inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
getString, setString, toHTML
-
-
-
-
Constructor Detail
-
CheckSum
public CheckSum()
Construct aCheckSumobject with an empty list ofCheckSumTypes.
-
-
Method Detail
-
add
public boolean add(CheckSumType e)
- Specified by:
addin interfacejava.util.Collection<CheckSumType>- Specified by:
addin interfacejava.util.Set<CheckSumType>
-
addAll
public boolean addAll(java.util.Collection<? extends CheckSumType> c)
- Specified by:
addAllin interfacejava.util.Collection<CheckSumType>- Specified by:
addAllin 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:
clearin interfacejava.util.Collection<CheckSumType>- Specified by:
clearin interfacejava.util.Set<CheckSumType>
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object- Returns:
Object- See Also:
TreeSet.clone()
-
comparator
public java.util.Comparator<? super CheckSumType> comparator()
- Specified by:
comparatorin interfacejava.util.SortedSet<CheckSumType>- Returns:
ComparatorofCheckSumType- See Also:
TreeSet.comparator()
-
compareTo
public int compareTo(UntypedData datatype)
- Specified by:
compareToin interfacejava.lang.Comparable<UntypedData>- Overrides:
compareToin classUntypedData
-
contains
public boolean contains(java.lang.Object o)
- Specified by:
containsin interfacejava.util.Collection<CheckSumType>- Specified by:
containsin interfacejava.util.Set<CheckSumType>
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
- Specified by:
containsAllin interfacejava.util.Collection<CheckSumType>- Specified by:
containsAllin interfacejava.util.Set<CheckSumType>
-
descendingIterator
public java.util.Iterator<CheckSumType> descendingIterator()
- Returns:
IteratorofCheckSumType- See Also:
TreeSet.descendingIterator()
-
descendingSet
public java.util.NavigableSet<CheckSumType> descendingSet()
- Returns:
NavigableSetofCheckSumType- See Also:
TreeSet.descendingSet()
-
equals
public boolean equals(java.lang.Object object)
- Specified by:
equalsin interfacejava.util.Collection<CheckSumType>- Specified by:
equalsin interfacejava.util.Set<CheckSumType>- Overrides:
equalsin classUntypedData- Parameters:
object- the object to compare- Returns:
- true or false
- See Also:
AbstractSet.equals(java.lang.Object)
-
first
public CheckSumType first()
- Specified by:
firstin 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:
hashCodein interfacejava.util.Collection<CheckSumType>- Specified by:
hashCodein interfacejava.util.Set<CheckSumType>- Overrides:
hashCodein classUntypedData- Returns:
- hashCode
- See Also:
AbstractSet.hashCode()
-
headSet
public java.util.SortedSet<CheckSumType> headSet(CheckSumType toElement)
- Specified by:
headSetin interfacejava.util.SortedSet<CheckSumType>- Parameters:
toElement- the type to match- Returns:
SortedSetofCheckSumType- 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:
NavigableSetofCheckSumType- 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:
isEmptyin interfacejava.util.Collection<CheckSumType>- Specified by:
isEmptyin interfacejava.util.Set<CheckSumType>
-
iterator
public java.util.Iterator<CheckSumType> iterator()
- Specified by:
iteratorin interfacejava.util.Collection<CheckSumType>- Specified by:
iteratorin interfacejava.lang.Iterable<CheckSumType>- Specified by:
iteratorin interfacejava.util.Set<CheckSumType>
-
last
public CheckSumType last()
- Specified by:
lastin 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:
removein interfacejava.util.Collection<CheckSumType>- Specified by:
removein interfacejava.util.Set<CheckSumType>
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
- Specified by:
removeAllin interfacejava.util.Collection<CheckSumType>- Specified by:
removeAllin interfacejava.util.Set<CheckSumType>
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
- Specified by:
retainAllin interfacejava.util.Collection<CheckSumType>- Specified by:
retainAllin 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:
sizein interfacejava.util.Collection<CheckSumType>- Specified by:
sizein 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:
NavigableSetofCheckSumType- 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:
subSetin interfacejava.util.SortedSet<CheckSumType>- Parameters:
fromElement- the "from" type to matchtoElement- the "to" type to match- Returns:
SortedSetofCheckSumType- See Also:
TreeSet.subSet(java.lang.Object, java.lang.Object)
-
tailSet
public java.util.SortedSet<CheckSumType> tailSet(CheckSumType fromElement)
- Specified by:
tailSetin interfacejava.util.SortedSet<CheckSumType>- Parameters:
fromElement- the "from" type to match- Returns:
SortedSetofCheckSumType- 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:
NavigableSetofCheckSumType- See Also:
TreeSet.tailSet(java.lang.Object, boolean)
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArrayin interfacejava.util.Collection<CheckSumType>- Specified by:
toArrayin interfacejava.util.Set<CheckSumType>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArrayin interfacejava.util.Collection<CheckSumType>- Specified by:
toArrayin interfacejava.util.Set<CheckSumType>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classUntypedData
-
-