This removes previously-deprecated setters, so that the resource
itself has an immutable surface.
JIRA: GENIUS-281
Change-Id: Ic621cb4afb5567442b29a7c69fdaf0bcb7c5430e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
InstanceIdentifier<?> getInstanceIdentifier();
- @Deprecated
- void setInstanceIdentifier(InstanceIdentifier<?> identifier);
-
Object getInstance();
- @Deprecated
- void setInstance(Object instance);
-
Object getOldInstance();
- @Deprecated
- void setOldInstance(Object oldInstance);
-
short getAction();
- @Deprecated
- void setAction(short action);
-
String getKey();
- @Deprecated
- void setKey(String key);
-
ListenableFuture<Void> getResultFuture();
}
this.action = action;
}
- @Override
public void setInstance(Object instance) {
this.instance = instance;
}
return this.instance;
}
- @Override
public void setOldInstance(Object oldInstance) {
this.oldInstance = oldInstance;
}
return this.oldInstance;
}
- @Override
public void setInstanceIdentifier(InstanceIdentifier instanceIdentifier) {
this.identifier = instanceIdentifier;
}
return this.identifier;
}
- @Override
public void setAction(short action) {
this.action = action;
}
return action;
}
- @Override
public void setKey(String key) {
this.key = key;
}