All Classes Namespaces Files Functions Variables
fi.jyu.mit.fxgui.StringAndObject< T > Class Reference

Packeting class to hold the name alongside the actual object. More...

Public Member Functions

 StringAndObject (String name, T obj)
 Creates a string and object -object for storing data.
 
String toString ()
 
String getName ()
 Returns the name of the pair.
 
void setName (String name)
 Sets the name of the pair.
 
getObject ()
 Returns the object of the pair.
 
void setObject (T object)
 Sets the object of the pair.
 

Private Attributes

String name
 
object
 

Detailed Description

Packeting class to hold the name alongside the actual object.

Author
Tero Paavolainen
Version
9.1.2017
Parameters
<T>mitä luokkaa tallennetaan

Definition at line 9 of file StringAndObject.java.

Constructor & Destructor Documentation

fi.jyu.mit.fxgui.StringAndObject< T >.StringAndObject ( String  name,
obj 
)
inline

Creates a string and object -object for storing data.

Parameters
namethe displayed object name
objthe object that is stored

Definition at line 18 of file StringAndObject.java.

Member Function Documentation

String fi.jyu.mit.fxgui.StringAndObject< T >.getName ( )
inline

Returns the name of the pair.

Returns
name

Definition at line 34 of file StringAndObject.java.

T fi.jyu.mit.fxgui.StringAndObject< T >.getObject ( )
inline

Returns the object of the pair.

Returns
object

Definition at line 52 of file StringAndObject.java.

void fi.jyu.mit.fxgui.StringAndObject< T >.setName ( String  name)
inline

Sets the name of the pair.

Parameters
namename for pair

Definition at line 43 of file StringAndObject.java.

void fi.jyu.mit.fxgui.StringAndObject< T >.setObject ( object)
inline

Sets the object of the pair.

Parameters
objectthe new object

Definition at line 61 of file StringAndObject.java.

String fi.jyu.mit.fxgui.StringAndObject< T >.toString ( )
inline

Definition at line 25 of file StringAndObject.java.

Member Data Documentation

String fi.jyu.mit.fxgui.StringAndObject< T >.name
private

Definition at line 10 of file StringAndObject.java.

T fi.jyu.mit.fxgui.StringAndObject< T >.object
private

Definition at line 11 of file StringAndObject.java.


The documentation for this class was generated from the following file: