When there is nothing to implement in the marker interfaces like Serializable.
当没有什么像序列化的标记接口来实现。
If your design includes empty interfaces that types are expected to implement, you are probably using an interface as a marker or a way to identify a group of types.
如果您的设计中包含类型需要实现的空接口,可以将接口作为标记或者作为标识一组类型的手段使用。
If your design includes empty interfaces that types are expected to implement, you are most likely using an interface as a marker, or a way of identifying a group of types.
如果你的设计包含一个空的接口,并且希望一些类型实现这个接口,你很可能希望使用这个接口作为一个标记来标示一组类型。
应用推荐