Last change
on this file since 77 was
77,
checked in by psniegowski, 11 years ago
|
Add new java codebase.
|
File size:
712 bytes
|
Line | |
---|
1 | package com.framsticks.core; |
---|
2 | |
---|
3 | import com.framsticks.params.types.CompositeParam; |
---|
4 | |
---|
5 | import java.util.HashMap; |
---|
6 | import java.util.Map; |
---|
7 | |
---|
8 | /** |
---|
9 | * @author Piotr Sniegowski |
---|
10 | */ |
---|
11 | public class Node { |
---|
12 | |
---|
13 | protected final CompositeParam param; |
---|
14 | protected final Object object; |
---|
15 | //protected final Map<String, Node> children = new HashMap<String, Node>(); |
---|
16 | |
---|
17 | public Node() { |
---|
18 | param = null; |
---|
19 | object = null; |
---|
20 | } |
---|
21 | |
---|
22 | public Node(CompositeParam param, Object object) { |
---|
23 | assert param != null; |
---|
24 | this.param = param; |
---|
25 | this.object = object; |
---|
26 | } |
---|
27 | |
---|
28 | public final CompositeParam getParam() { |
---|
29 | return param; |
---|
30 | } |
---|
31 | |
---|
32 | public final Object getObject() { |
---|
33 | return object; |
---|
34 | } |
---|
35 | |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.