# Class LongProperty<K>

java.lang.Object
com.codename1.properties.PropertyBase<Long,K>
com.codename1.properties.Property<Long,K>
com.codename1.properties.NumericProperty<Long,K>
com.codename1.properties.LongProperty<K>

public class LongProperty<K> extends NumericProperty<Long,K>
This is the long specific version of numeric property

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `LongProperty(String name)`
  Creates a long property with the given name.
  `LongProperty(String name, Long value)`
  Creates a long property with the given name and initial value.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `long`
  `getLong()`
  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 Object

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

- ## Constructor Details

  - ### LongProperty

    public LongProperty(String name)
    Creates a long property with the given name.

  - ### LongProperty

    public LongProperty(String name, Long value)
    Creates a long property with the given name and initial value.

- ## Method Details

  - ### getLong

    public long getLong()

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

    ###### Returns

    the numeric value