public class VectorialKeywordSpecification extends KeywordSpecification
Constructor and Description |
---|
VectorialKeywordSpecification(int length,
String keyword) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getLength()
The length all vectors for this keyword have to have.
|
int |
hashCode() |
boolean |
validate(Value value)
This applies the KeywordSpecification validation and additionally checks
whether the given value has the correct length.
|
getKeyword, getType, toString
public VectorialKeywordSpecification(int length, String keyword)
public int getLength()
public boolean validate(Value value)
validate
in class KeywordSpecification
value
- a value.public int hashCode()
hashCode
in class KeywordSpecification
public boolean equals(Object obj)
equals
in class KeywordSpecification
Copyright (C) 2013-2015 Benjamin Paaßen, Georg Zentgraf, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs . This documentation is licensed under the conditions of CC-BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/