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:
1.0 KB
|
Rev | Line | |
---|
[101] | 1 | package com.framsticks.communication.queries; |
---|
| 2 | |
---|
| 3 | import com.framsticks.communication.File; |
---|
[105] | 4 | import com.framsticks.util.dispatching.FutureHandler; |
---|
[101] | 5 | import com.framsticks.util.lang.Strings; |
---|
| 6 | |
---|
| 7 | public class NeedFile { |
---|
| 8 | |
---|
| 9 | protected final String suggestedName; |
---|
| 10 | protected final String description; |
---|
[105] | 11 | protected final FutureHandler<File> future; |
---|
[101] | 12 | |
---|
| 13 | /** |
---|
| 14 | * @param suggestedName |
---|
| 15 | * @param description |
---|
| 16 | * @param future |
---|
| 17 | */ |
---|
[105] | 18 | public NeedFile(String suggestedName, String description, FutureHandler<File> future) { |
---|
[101] | 19 | this.suggestedName = suggestedName; |
---|
| 20 | this.description = description; |
---|
| 21 | this.future = future; |
---|
| 22 | } |
---|
| 23 | |
---|
| 24 | /** |
---|
| 25 | * @return the suggestedName |
---|
| 26 | */ |
---|
| 27 | public String getSuggestedName() { |
---|
| 28 | return suggestedName; |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | /** |
---|
| 32 | * @return the description |
---|
| 33 | */ |
---|
| 34 | public String getDescription() { |
---|
| 35 | return description; |
---|
| 36 | } |
---|
| 37 | |
---|
| 38 | /** |
---|
| 39 | * @return the future |
---|
| 40 | */ |
---|
[105] | 41 | public FutureHandler<File> getFuture() { |
---|
[101] | 42 | return future; |
---|
| 43 | } |
---|
| 44 | |
---|
| 45 | @Override |
---|
| 46 | public String toString() { |
---|
| 47 | return Strings.toStringEmptyProof(suggestedName, "?") + " " + Strings.toStringEmptyProof(description, "?"); |
---|
| 48 | } |
---|
| 49 | |
---|
| 50 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.