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 void
add(int index, LinkConstraint element)
void
clear()
LinkConstraint
get(int index)
LinkConstraint
remove(int index)
LinkConstraint
set(int index, LinkConstraint element)
int
size()
-
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:
get
in interfaceList<LinkConstraint>
- Specified by:
get
in classAbstractList<LinkConstraint>
-
add
public void add(int index, LinkConstraint element)
- Specified by:
add
in interfaceList<LinkConstraint>
- Overrides:
add
in classAbstractList<LinkConstraint>
-
remove
public LinkConstraint remove(int index)
- Specified by:
remove
in interfaceList<LinkConstraint>
- Overrides:
remove
in classAbstractList<LinkConstraint>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<LinkConstraint>
- Specified by:
clear
in interfaceList<LinkConstraint>
- Overrides:
clear
in classAbstractList<LinkConstraint>
-
set
public LinkConstraint set(int index, LinkConstraint element)
- Specified by:
set
in interfaceList<LinkConstraint>
- Overrides:
set
in classAbstractList<LinkConstraint>
-
size
public int size()
- Specified by:
size
in interfaceCollection<LinkConstraint>
- Specified by:
size
in interfaceList<LinkConstraint>
- Specified by:
size
in classAbstractCollection<LinkConstraint>
-
-