mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Refactor
This commit is contained in:
parent
ac4c37ba48
commit
326bf39bed
@ -34,7 +34,7 @@ public class DecreeParameter {
|
|||||||
|
|
||||||
public DecreeParameterHandler<?> getHandler()
|
public DecreeParameterHandler<?> getHandler()
|
||||||
{
|
{
|
||||||
return DecreeSystem.handle(getType());
|
return DecreeSystem.getHandler(getType());
|
||||||
}
|
}
|
||||||
|
|
||||||
public Class<?> getType()
|
public Class<?> getType()
|
||||||
|
@ -29,7 +29,7 @@ public class DecreeSystem {
|
|||||||
* @param type The type to handle
|
* @param type The type to handle
|
||||||
* @return The corresponding {@link DecreeParameterHandler}, or null
|
* @return The corresponding {@link DecreeParameterHandler}, or null
|
||||||
*/
|
*/
|
||||||
public static DecreeParameterHandler<?> handle(Class<?> type)
|
public static DecreeParameterHandler<?> getHandler(Class<?> type)
|
||||||
{
|
{
|
||||||
for(DecreeParameterHandler<?> i : handlers)
|
for(DecreeParameterHandler<?> i : handlers)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user