@Override
    public Collection<User> getUsers(int startIndex, int numResults)
    {
        return new ArrayList<>(data.values()).subList(startIndex, Math.min(numResults, data.size() - startIndex));
    }
A very basic implementation of a UserProvider, that retains data in-memory.

@author Guus der Kinderen, guus@goodbytes.nl
xmppserver/src/test/java/org/jivesoftware/openfire/user/TestUserProvider.java