Skip to content

Commit 9ed74c6

Browse files
committed
Adapter unregistering.
1 parent 46eeeee commit 9ed74c6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/main/java/me/zort/configurationlib/SectionNode.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,15 @@ public <T> void registerAdapter(Class<T> type, NodeAdapter<T, L> adapter) {
9191
adapters.put(type, adapter);
9292
}
9393

94+
/**
95+
* This method unregisters an already registered adapter.
96+
*
97+
* @param type The (super)class of the serialized/deserialized object.
98+
*/
99+
public void unregisterAdapter(Class<?> type) {
100+
adapters.remove(type);
101+
}
102+
94103
/**
95104
* Updates this node's values from the provided mapped
96105
* object.

0 commit comments

Comments
 (0)