Last change
on this file since 193 was
193,
checked in by Maciej Komosinski, 10 years ago
|
Set svn:eol-style native for all textual files
|
-
Property svn:eol-style set to
native
|
File size:
626 bytes
|
Line | |
---|
1 | package com.framsticks.params; |
---|
2 | |
---|
3 | public class ReassignResult<T> { |
---|
4 | protected final T value; |
---|
5 | protected final int flags; |
---|
6 | |
---|
7 | /** |
---|
8 | * @param value |
---|
9 | * @param state |
---|
10 | */ |
---|
11 | public ReassignResult(T value, int state) { |
---|
12 | this.value = value; |
---|
13 | this.flags = state; |
---|
14 | } |
---|
15 | |
---|
16 | /** |
---|
17 | * @param value |
---|
18 | */ |
---|
19 | public ReassignResult(T value) { |
---|
20 | this.value = value; |
---|
21 | this.flags = 0; |
---|
22 | } |
---|
23 | |
---|
24 | /** |
---|
25 | * @return the value |
---|
26 | */ |
---|
27 | public final T getValue() { |
---|
28 | return value; |
---|
29 | } |
---|
30 | |
---|
31 | /** |
---|
32 | * @return the state |
---|
33 | */ |
---|
34 | public final int getFlags() { |
---|
35 | return flags; |
---|
36 | } |
---|
37 | |
---|
38 | public static <T> ReassignResult<T> create(T value) { |
---|
39 | return new ReassignResult<T>(value); |
---|
40 | } |
---|
41 | |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.