The BaseClaim class is a Claim implementation that returns null when any of it's methods it's called.
| 10 | * The BaseClaim class is a Claim implementation that returns null when any of it's methods it's called. |
| 11 | */ |
| 12 | class BaseClaim implements Claim { |
| 13 | |
| 14 | @Nullable |
| 15 | @Override |
| 16 | public Boolean asBoolean() { |
| 17 | return null; |
| 18 | } |
| 19 | |
| 20 | @Nullable |
| 21 | @Override |
| 22 | public Integer asInt() { |
| 23 | return null; |
| 24 | } |
| 25 | |
| 26 | @Nullable |
| 27 | @Override |
| 28 | public Long asLong() { return null; } |
| 29 | |
| 30 | @Nullable |
| 31 | @Override |
| 32 | public Double asDouble() { |
| 33 | return null; |
| 34 | } |
| 35 | |
| 36 | @Nullable |
| 37 | @Override |
| 38 | public String asString() { |
| 39 | return null; |
| 40 | } |
| 41 | |
| 42 | @Nullable |
| 43 | @Override |
| 44 | public Date asDate() { |
| 45 | return null; |
| 46 | } |
| 47 | |
| 48 | @SuppressWarnings("unchecked") |
| 49 | @Override |
| 50 | public <T> T[] asArray(Class<T> tClazz) throws DecodeException { |
| 51 | return (T[]) Array.newInstance(tClazz, 0); |
| 52 | } |
| 53 | |
| 54 | @Override |
| 55 | public <T> List<T> asList(Class<T> tClazz) throws DecodeException { |
| 56 | return Collections.emptyList(); |
| 57 | } |
| 58 | |
| 59 | @Nullable |
| 60 | @Override |
| 61 | public <T> T asObject(Class<T> tClazz) throws DecodeException { |
| 62 | return null; |
| 63 | } |
| 64 | } |
nothing calls this directly
no outgoing calls
no test coverage detected