public final class

ChartCustomAttribute

extends Object
java.lang.Object
   ↳ com.artfulbits.aiCharts.Base.ChartCustomAttribute<TValue>

Class Overview

Identifies generic custom attributes class.

Summary

Fields
public final TValue DefaultValue Default value of attribute
public final String Name Name of attribute.
public final Class<?> Owner Owner of attribute
public final Class<TValue> Type Type of attribute
public final int flags Custom flags
Public Methods
int hashCode()
static <TValue> ChartCustomAttribute<TValue> register(String name, Class<?> owner, Class<TValue> type, TValue defaultValue)
Registers a new attribute for specified owner.
static <TValue> ChartCustomAttribute<TValue> register(String name, Class<?> owner, Class<TValue> type, TValue defaultValue, int flags)
Registers a new attribute for specified owner.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public final TValue DefaultValue

Default value of attribute

public final String Name

Name of attribute.

public final Class<?> Owner

Owner of attribute

public final Class<TValue> Type

Type of attribute

public final int flags

Custom flags

Public Methods

public int hashCode ()

Since: API Level

public static ChartCustomAttribute<TValue> register (String name, Class<?> owner, Class<TValue> type, TValue defaultValue)

Registers a new attribute for specified owner.

Parameters
name Name of attribute
owner owning class.
type type of value
defaultValue default value.
Returns
  • instance of new attribute.

public static ChartCustomAttribute<TValue> register (String name, Class<?> owner, Class<TValue> type, TValue defaultValue, int flags)

Registers a new attribute for specified owner.

Parameters
name Name of attribute
owner owning class.
type type of value
defaultValue default value.
flags custom flags
Returns
  • instance of new attribute.