1. Strategy Deisgn Pattern
ZH: Comparator 是策略模式(strategy design pattern),就是不改变对象自身,而用一个策略对象(strategy object)来改变它的行为
EN: Comparator is kind of strategy design pattern, that means Object won't change selives anyway, while making user of another object so-called strategy Object to implement the intention of changing behaviour or status.
Demo: comparator in [url]http://rossbu.iteye.com/blog/245991[/url]
ZH: Comparator 是策略模式(strategy design pattern),就是不改变对象自身,而用一个策略对象(strategy object)来改变它的行为
EN: Comparator is kind of strategy design pattern, that means Object won't change selives anyway, while making user of another object so-called strategy Object to implement the intention of changing behaviour or status.
Demo: comparator in [url]http://rossbu.iteye.com/blog/245991[/url]