头像

Gloduck

一个菜鸡JAVA后端的博客~
定义 Represent an operation to be performed on the elements of an object structure. Visitor lets you...

定义 Without violating encapsulation,capture and externalize an object's internal state so that the ...

定义 Given a language, define a representation for its gr ammar along with an interpreter that uses t...

定义 Provide a way to access the el ements of an aggregate object sequentially without exposing its u...

定义 Decouple an abstraction from its implementation so that the two can vary independently.(将抽象和实现解...

定义 Provide a unified interface to a set of interfaces in a subsystem.Facade defines a higher-level ...

定义 Use sharing to support large numbers of fine-grained objects efficiently.(使用共享对象可有效地支持大量的细粒度的对象...

定义 Define a one-to-many dependency between objects so that when one object changes state,all its de...

在看多线程和并发的时候看到书上使用并发的知识设计了一个缓存容器,觉得挺有用的,故写一篇博客记录一下。 首先,定义一个接口,接口中定义一个运算的方法: /** * 定义一个接口,实现这个接口的缓存...

定义 Compose objects into tree structures to represent part-whole hierarchies.Composite lets clients ...