T
- Object stored.public class Container<T> extends Object
Constructor and Description |
---|
Container(T object,
int id)
Constructor for the object.
|
Modifier and Type | Method and Description |
---|---|
int |
getId()
Get the UserID related to the object.
|
T |
getObject()
Get the object in the container.
|
public Container(T object, int id)
object
- Object to place inside the container.id
- UserID related to the object.public T getObject()
public int getId()
Copyright © 2017. All rights reserved.