package Collections;
import java.util.*;
import java.util.stream.Collectors;
/**
* The Sorting map.
* Sorting map of object, based on the element in the object.
*/
public class SortingMap {
/**
* The type Employees.
*/
static class Employees {
/**
* The Name.
*/
String name;
/**
* The Number.
*/
int number;
/**
* Instantiates a new Employees.
*
* @param name the name
* @param number the number
*/
public Employees(String name, int number) {
this.name = name;
this.number = number;
}
}
/**
* The entry point of application.
*
* @param args the input arguments
*/
public static void main(String[] args) {
Map