The next three methods we will add to the history stack class are used for getting information from the class (see Listing 3).
给历史堆栈添加的以下三个方法用于从该类中获取信息(参见清单3)。
A complete version of the class shown in Listing 3 can be downloaded from the code accompanying the article.
清单3中所示的类的完整版本可以在本文随附的示例代码中找到。
You can use Eclipse's refactoring tools to easily extract an interface from the Person class in Listing 3. Let's call that a Thing.
您可以使用Eclipse的重构工具从清单3中的Person类轻松提取一个接口。
应用推荐