[FAST-18] Hide all value objects and abstract value object functionality behind static factory methods in a new Values class Created: 30/Oct/08 Updated: 30/Oct/08 |
|
Status: | Open |
Project: | OpenFAST |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | 1.3.0 |
Type: | Improvement | Priority: | Default |
Reporter: | Jacob Northey | Assignee: | Jacob Northey |
Resolution: | Unresolved | Votes: | 0 |
Labels: | None |
Description |
Client code should not have access to IntegerValue, StringValue, LongValue, ... These values should be made protected and moved to the package org.openfast.value. A new class org.openfast.value.Values should be used to construct these objects. public class Values { public static integer(int value) {...} public static integer(long value) {...}public static ulong(long value) {...} public static string(String value) {...}public static byteVector(String hexString) {...} public static byteVector(byte[] value) {...}public static decimal(String value) {...} public static decimal(double value, int precision) {...}public static decimal(BigDecimal value) {...} } |