/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

package com.skelril.skree.service;

import com.skelril.nitro.Clause;

import java.util.Collection;

public interface ModifierService {
    void setExpiry(String modifier, long time);
    long expiryOf(String modifier);
    default long statusOf(String modifier) {
        return Math.max(expiryOf(modifier) - System.currentTimeMillis(), 0);
    }
    default boolean isActive(String modifier) {
        return statusOf(modifier) != 0;
    }

    Collection<Clause<String, Long>> getActiveModifiers();
}

@@ -250,62 +250,21 @@
 ort 
-com.skelril.nitro.Clause;%0A%0Aimport java.util.Collection
+java.util.Map
 ;%0A%0Ap
@@ -612,25 +612,11 @@
     
-Collection%3CClause
+Map
 %3CStr
@@ -625,17 +625,16 @@
 g, Long%3E
-%3E
  getActi

Use a map for the collection of active modifiers