# Class ByteProperty<K>

java.lang.Object
com.codename1.properties.PropertyBase<Byte,K>
com.codename1.properties.Property<Byte,K>
com.codename1.properties.NumericProperty<Byte,K>
com.codename1.properties.ByteProperty<K>

public class ByteProperty<K> extends NumericProperty<Byte,K>
This is the byte specific version of numeric property

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ByteProperty(String name)`
  Creates a byte property with the given name.
  `ByteProperty(String name, Byte value)`
  Creates a byte property with the given name and initial value.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `byte`
  `getByte()`
  Returns the value as a primitive, if the value is null/nullable this will fail...

  ### Methods inherited from class NumericProperty

  `isNullable, set, setNullable`

  ### Methods inherited from class Property

  `equals, get, hashCode, toString`

  ### Methods inherited from class PropertyBase

  `addChangeListener, bindGlobalGetListener, bindGlobalSetListener, firePropertyChanged, getClientProperty, getGenericType, getLabel, getName, putClientProperty, removeChangeListener, setLabel, stopListening, validateCollectionType`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### ByteProperty

    public ByteProperty(String name)
    Creates a byte property with the given name.

  - ### ByteProperty

    public ByteProperty(String name, Byte value)
    Creates a byte property with the given name and initial value.

- ## Method Details

  - ### getByte

    public byte getByte()

    Returns the value as a primitive, if the value is null/nullable this will fail...

    ###### Returns

    the numeric value