| 30 | /// |
| 31 | /// @author Shai Almog |
| 32 | public class Property<T, K> extends PropertyBase<T, K> { |
| 33 | private T value; |
| 34 | |
| 35 | /// Constructs a property with the given name and value |
| 36 | /// |
| 37 | /// #### Parameters |
| 38 | /// |
| 39 | /// - `name`: the name of the property |
| 40 | /// |
| 41 | /// - `value`: the default value for the property |
| 42 | public Property(String name, T value) { |
| 43 | super(name); |
| 44 | this.value = value; |
| 45 | } |
| 46 | |
| 47 | /// Constructs a property with the given name and value |
| 48 | /// |
| 49 | /// #### Parameters |
| 50 | /// |
| 51 | /// - `name`: the name of the property |
| 52 | /// |
| 53 | /// - `genericType`: the type of the property |
| 54 | /// |
| 55 | /// - `value`: the default value for the property |
| 56 | public Property(String name, Class genericType, T value) { |
| 57 | super(name, genericType); |
| 58 | this.value = value; |
| 59 | } |
| 60 | |
| 61 | /// Constructs a property with null value |
| 62 | /// |
| 63 | /// #### Parameters |
| 64 | /// |
| 65 | /// - `name`: the name of the property |
| 66 | public Property(String name) { |
| 67 | super(name); |
| 68 | } |
| 69 | |
| 70 | /// Constructs a property with null value |
| 71 | /// |
| 72 | /// #### Parameters |
| 73 | /// |
| 74 | /// - `genericType`: the type of the property |
| 75 | /// |
| 76 | /// - `name`: the name of the property |
| 77 | public Property(String name, Class genericType) { |
| 78 | super(name, genericType); |
| 79 | } |
| 80 | |
| 81 | /// Gets the property value |
| 82 | /// |
| 83 | /// #### Returns |
| 84 | /// |
| 85 | /// the property value |
| 86 | @Override |
| 87 | public T get() { |
| 88 | internalGet(); |
| 89 | return value; |
nothing calls this directly
no outgoing calls
no test coverage detected