org.mechio.impl.sensor
Class CompassConfigRecord.Builder

java.lang.Object
  extended by org.apache.avro.data.RecordBuilderBase<T>
      extended by org.apache.avro.specific.SpecificRecordBuilderBase<CompassConfigRecord>
          extended by org.mechio.impl.sensor.CompassConfigRecord.Builder
All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<CompassConfigRecord>, org.jflux.api.core.Source<CompassConfigRecord>
Enclosing class:
CompassConfigRecord

public static class CompassConfigRecord.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<CompassConfigRecord>
implements org.apache.avro.data.RecordBuilder<CompassConfigRecord>, org.jflux.api.core.Source<CompassConfigRecord>

RecordBuilder for CompassConfigRecord instances.


Method Summary
 CompassConfigRecord build()
           
 CompassConfigRecord.Builder clearAverage()
          Clears the value of the 'average' field
 CompassConfigRecord.Builder clearBias()
          Clears the value of the 'bias' field
 CompassConfigRecord.Builder clearGain()
          Clears the value of the 'gain' field
 CompassConfigRecord.Builder clearHeader()
          Clears the value of the 'header' field
 CompassConfigRecord.Builder clearRate()
          Clears the value of the 'rate' field
 java.lang.Integer getAverage()
          Gets the value of the 'average' field
 java.lang.Integer getBias()
          Gets the value of the 'bias' field
 java.lang.Integer getGain()
          Gets the value of the 'gain' field
 HeaderRecord getHeader()
          Gets the value of the 'header' field
 java.lang.Integer getRate()
          Gets the value of the 'rate' field
 CompassConfigRecord getValue()
           
 boolean hasAverage()
          Checks whether the 'average' field has been set
 boolean hasBias()
          Checks whether the 'bias' field has been set
 boolean hasGain()
          Checks whether the 'gain' field has been set
 boolean hasHeader()
          Checks whether the 'header' field has been set
 boolean hasRate()
          Checks whether the 'rate' field has been set
 CompassConfigRecord.Builder setAverage(int value)
          Sets the value of the 'average' field
 CompassConfigRecord.Builder setBias(int value)
          Sets the value of the 'bias' field
 CompassConfigRecord.Builder setGain(int value)
          Sets the value of the 'gain' field
 CompassConfigRecord.Builder setHeader(HeaderRecord value)
          Sets the value of the 'header' field
 CompassConfigRecord.Builder setRate(int value)
          Sets the value of the 'rate' field
 
Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHeader

public HeaderRecord getHeader()
Gets the value of the 'header' field


setHeader

public CompassConfigRecord.Builder setHeader(HeaderRecord value)
Sets the value of the 'header' field


hasHeader

public boolean hasHeader()
Checks whether the 'header' field has been set


clearHeader

public CompassConfigRecord.Builder clearHeader()
Clears the value of the 'header' field


getAverage

public java.lang.Integer getAverage()
Gets the value of the 'average' field


setAverage

public CompassConfigRecord.Builder setAverage(int value)
Sets the value of the 'average' field


hasAverage

public boolean hasAverage()
Checks whether the 'average' field has been set


clearAverage

public CompassConfigRecord.Builder clearAverage()
Clears the value of the 'average' field


getRate

public java.lang.Integer getRate()
Gets the value of the 'rate' field


setRate

public CompassConfigRecord.Builder setRate(int value)
Sets the value of the 'rate' field


hasRate

public boolean hasRate()
Checks whether the 'rate' field has been set


clearRate

public CompassConfigRecord.Builder clearRate()
Clears the value of the 'rate' field


getBias

public java.lang.Integer getBias()
Gets the value of the 'bias' field


setBias

public CompassConfigRecord.Builder setBias(int value)
Sets the value of the 'bias' field


hasBias

public boolean hasBias()
Checks whether the 'bias' field has been set


clearBias

public CompassConfigRecord.Builder clearBias()
Clears the value of the 'bias' field


getGain

public java.lang.Integer getGain()
Gets the value of the 'gain' field


setGain

public CompassConfigRecord.Builder setGain(int value)
Sets the value of the 'gain' field


hasGain

public boolean hasGain()
Checks whether the 'gain' field has been set


clearGain

public CompassConfigRecord.Builder clearGain()
Clears the value of the 'gain' field


build

public CompassConfigRecord build()
Specified by:
build in interface org.apache.avro.data.RecordBuilder<CompassConfigRecord>

getValue

public CompassConfigRecord getValue()
Specified by:
getValue in interface org.jflux.api.core.Source<CompassConfigRecord>


Copyright © 2011-2014. All Rights Reserved.