Package com.exedio.cope.util
Class AssertionErrorPropertiesSource
java.lang.Object
com.exedio.cope.util.AssertionErrorPropertiesSource
- All Implemented Interfaces:
Properties.Source
An implementation of
Properties.Source
where
all methods do fail with a
AssertionError
.
You may want to subclass this class instead of
implementing Properties.Source
directly
to make your subclass cope with new methods
in Properties.Source
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionkeySet()
Returns all keys, for whichProperties.Source.get(String)
does not return null.reload()
Reloads the contents of this source from its origin, if this makes sense for the implementation.toString()
-
Constructor Details
-
AssertionErrorPropertiesSource
public AssertionErrorPropertiesSource()
-
-
Method Details
-
get
- Specified by:
get
in interfaceProperties.Source
-
keySet
Description copied from interface:Properties.Source
Returns all keys, for whichProperties.Source.get(String)
does not return null. This operation is optional - if this source does not support this operation, it returns null. The result is always unmodifiable.- Specified by:
keySet
in interfaceProperties.Source
-
reload
Description copied from interface:Properties.Source
Reloads the contents of this source from its origin, if this makes sense for the implementation. The reloaded contents are returned as a new source - this source is not modified.If the implementation does not support reloading, simply return
this
, which is also the default implementation.- Specified by:
reload
in interfaceProperties.Source
-
getDescription
- Specified by:
getDescription
in interfaceProperties.Source
-
toString
-