org.mechio.impl.sensor
Class RGBOutputRecord.Builder

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

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

RecordBuilder for RGBOutputRecord instances.


Method Summary
 RGBOutputRecord build()
           
 RGBOutputRecord.Builder clearBlue()
          Clears the value of the 'blue' field
 RGBOutputRecord.Builder clearChannelId()
          Clears the value of the 'channelId' field
 RGBOutputRecord.Builder clearGreen()
          Clears the value of the 'green' field
 RGBOutputRecord.Builder clearHeader()
          Clears the value of the 'header' field
 RGBOutputRecord.Builder clearRed()
          Clears the value of the 'red' field
 Integer getBlue()
          Gets the value of the 'blue' field
 Integer getChannelId()
          Gets the value of the 'channelId' field
 Integer getGreen()
          Gets the value of the 'green' field
 HeaderRecord getHeader()
          Gets the value of the 'header' field
 Integer getRed()
          Gets the value of the 'red' field
 RGBOutputRecord getValue()
           
 boolean hasBlue()
          Checks whether the 'blue' field has been set
 boolean hasChannelId()
          Checks whether the 'channelId' field has been set
 boolean hasGreen()
          Checks whether the 'green' field has been set
 boolean hasHeader()
          Checks whether the 'header' field has been set
 boolean hasRed()
          Checks whether the 'red' field has been set
 RGBOutputRecord.Builder setBlue(int value)
          Sets the value of the 'blue' field
 RGBOutputRecord.Builder setChannelId(int value)
          Sets the value of the 'channelId' field
 RGBOutputRecord.Builder setGreen(int value)
          Sets the value of the 'green' field
 RGBOutputRecord.Builder setHeader(HeaderRecord value)
          Sets the value of the 'header' field
 RGBOutputRecord.Builder setRed(int value)
          Sets the value of the 'red' 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 RGBOutputRecord.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 RGBOutputRecord.Builder clearHeader()
Clears the value of the 'header' field


getChannelId

public Integer getChannelId()
Gets the value of the 'channelId' field


setChannelId

public RGBOutputRecord.Builder setChannelId(int value)
Sets the value of the 'channelId' field


hasChannelId

public boolean hasChannelId()
Checks whether the 'channelId' field has been set


clearChannelId

public RGBOutputRecord.Builder clearChannelId()
Clears the value of the 'channelId' field


getRed

public Integer getRed()
Gets the value of the 'red' field


setRed

public RGBOutputRecord.Builder setRed(int value)
Sets the value of the 'red' field


hasRed

public boolean hasRed()
Checks whether the 'red' field has been set


clearRed

public RGBOutputRecord.Builder clearRed()
Clears the value of the 'red' field


getGreen

public Integer getGreen()
Gets the value of the 'green' field


setGreen

public RGBOutputRecord.Builder setGreen(int value)
Sets the value of the 'green' field


hasGreen

public boolean hasGreen()
Checks whether the 'green' field has been set


clearGreen

public RGBOutputRecord.Builder clearGreen()
Clears the value of the 'green' field


getBlue

public Integer getBlue()
Gets the value of the 'blue' field


setBlue

public RGBOutputRecord.Builder setBlue(int value)
Sets the value of the 'blue' field


hasBlue

public boolean hasBlue()
Checks whether the 'blue' field has been set


clearBlue

public RGBOutputRecord.Builder clearBlue()
Clears the value of the 'blue' field


build

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

getValue

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


Copyright © 2011-2014. All Rights Reserved.