public final class UrlAccessor<T> extends Object implements SingletonAccessor<T>
Constructor and Description |
---|
UrlAccessor(StreamMarshaller<T> streamMarshaller,
URL url) |
Modifier and Type | Method and Description |
---|---|
T |
get()
Retrieves the current value.
|
URL |
getUrl() |
void |
set(T newValue)
Sets the new value.
|
public UrlAccessor(@Nonnull StreamMarshaller<T> streamMarshaller, @Nonnull URL url)
@Nullable public T get() throws IOException
SingletonAccessor
get
in interface SingletonAccessor<T>
IOException
- if an exception happens while retrieving the value.public void set(@Nonnull T newValue) throws IOException
SingletonAccessor
set
in interface SingletonAccessor<T>
newValue
- the new value to set.IOException
- if an exception happens while setting the value.Copyright © 2020. All Rights Reserved.