Class LinkConstraintCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<LinkConstraint>
-
- com.bayesserver.learning.structure.LinkConstraintCollection
-
- All Implemented Interfaces:
Iterable<LinkConstraint>,Collection<LinkConstraint>,List<LinkConstraint>
public final class LinkConstraintCollection extends AbstractList<LinkConstraint>
A collection oflink constraints. Link constraints can be used during structural learning to encode prior knowledge.
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description LinkConstraintCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, LinkConstraint element)voidclear()LinkConstraintget(int index)LinkConstraintremove(int index)LinkConstraintset(int index, LinkConstraint element)intsize()-
Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
get
public LinkConstraint get(int index)
- Specified by:
getin interfaceList<LinkConstraint>- Specified by:
getin classAbstractList<LinkConstraint>
-
add
public void add(int index, LinkConstraint element)- Specified by:
addin interfaceList<LinkConstraint>- Overrides:
addin classAbstractList<LinkConstraint>
-
remove
public LinkConstraint remove(int index)
- Specified by:
removein interfaceList<LinkConstraint>- Overrides:
removein classAbstractList<LinkConstraint>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<LinkConstraint>- Specified by:
clearin interfaceList<LinkConstraint>- Overrides:
clearin classAbstractList<LinkConstraint>
-
set
public LinkConstraint set(int index, LinkConstraint element)
- Specified by:
setin interfaceList<LinkConstraint>- Overrides:
setin classAbstractList<LinkConstraint>
-
size
public int size()
- Specified by:
sizein interfaceCollection<LinkConstraint>- Specified by:
sizein interfaceList<LinkConstraint>- Specified by:
sizein classAbstractCollection<LinkConstraint>
-
-