" L: E, J$ _1 F& E/** 1 W0 P! T: k: H1 u, K# _* A class representing a set of packet and byte counters 9 |2 P: a4 U# \; I* It is observable to allow it to be watched, but only & B. Y% O& g& ~ _- ]5 f* reports changes when the current set is complete 8 w, c2 \- |5 r( h*/ ' S* U& [8 L9 F; u8 \
1 o+ ]$ \4 C# V) X& T
+ b' b( f+ r8 [" k5 _% y5 N, ~接下来是类定义,包含了在不同的行的 extends 和 implements * n8 P) m; `5 A. x
2 w: g% {: Z+ j' D6 m( U- C
public class CounterSet ( D, Q0 {. K+ z- U# {5 D9 Nextends Observable ( h* t% ^0 L; K7 kimplements Cloneable & v8 H6 ^8 n+ S5 k! b
2 J* H$ t) {* V9 t