@@ -0,0 +1,706 @@
+package org.wow.metrics;%0A%0Aimport com.epam.starwors.galaxy.Planet;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Collection;%0Aimport java.util.List;%0A%0A/**%0A * Use this class for get any metrics for World%0A */%0Apublic class World %7B%0A    Collection%3CPlanet%3E world;%0A%0A    public World(Collection%3CPlanet%3E world) %7B%0A        this.world = world;%0A    %7D%0A%0A    public int getNumberOfPlanets()%7B%0A        return world.size();%0A    %7D%0A%0A    public List%3CPlanet%3E getUsersPlanets(String user)%7B%0A        List%3CPlanet%3E userPlanets = new ArrayList%3CPlanet%3E();%0A        for(Planet planet:world)%7B%0A            if(planet.getOwner().equals(user))%7B%0A                userPlanets.add(planet);%0A            %7D%0A        %7D%0A        return userPlanets;%0A    %7D%0A%7D%0A

create Metrics: - getNumberOfPlanets - getUsersPlanets