The getOrder method takes the order ID as a parameter, gets the corresponding order from the HashMap, and returns the same.
getOrder 方法接受订单 ID 作为参数,从 HashMap 获得对应的订单并返回订单。
If this collection makes any guarantees as to what order its elements are returned by its iterator, this method must return the elements in the same order.
如果集合保证它所含元素的顺序为迭代器的顺序,那么方法必须以相同顺序返回元素。
The following example makes the same method calls as the preceding example, but the order of the calls is reversed.
下面的示例与上面的示例调用相同的方法,但是调用的顺序完全相反。
应用推荐