Package nl.basjes.parse.useragent
Class AgentField.MutableAgentField
java.lang.Object
nl.basjes.parse.useragent.AgentField.MutableAgentField
- All Implemented Interfaces:
Serializable,AgentField
- Enclosing interface:
- AgentField
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface nl.basjes.parse.useragent.AgentField
AgentField.ImmutableAgentField, AgentField.MutableAgentField -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetValue()What is the value we have for this field? If we do not know you'll get the default value that has been defined (which may be null).inthashCode()booleanvoidreset()booleanbooleanvoidsetValueForced(String newValue, long newConfidence) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface nl.basjes.parse.useragent.AgentField
afEquals, afHashCode, afToString
-
Method Details
-
reset
public void reset() -
getValue
Description copied from interface:AgentFieldWhat is the value we have for this field? If we do not know you'll get the default value that has been defined (which may be null).- Specified by:
getValuein interfaceAgentField
-
isDefaultValue
public boolean isDefaultValue()- Specified by:
isDefaultValuein interfaceAgentField- Returns:
- Is the value you are getting the default (i.e. we do not know what this is)?
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceAgentField- Returns:
- The default value for this field in case we do not know what this is.
-
getConfidence
public long getConfidence()- Specified by:
getConfidencein interfaceAgentField- Returns:
- How certain are we about this value? <0 : We are uncertain. 0>= : The higher the more confident.
-
setValue
-
setValue
-
setValueForced
-
equals
-
hashCode
public int hashCode() -
toString
-