@Test public void sizeCalculation() { AdsNotificationSample adsNotificationSample1 = AdsNotificationSample.of(NotificationHandle.of(13), SampleSize.of(13), Data.of("Hello World!")); AdsNotificationSample adsNotificationSample2 = AdsNotificationSample.of(NotificationHandle.of(13), Data.of("Hello World!")); assertEquals(adsNotificationSample1, adsNotificationSample2); }
public static AdsNotificationSample of(NotificationHandle notificationHandle, Data data) { return new AdsNotificationSample(notificationHandle, data); }
AdsNotificationSample implements ByteReadable { public static AdsNotificationSample of(NotificationHandle notificationHandle, Data data) { return new AdsNotificationSample(notificationHandle, data); } }
AdsNotificationSample implements ByteReadable { public static AdsNotificationSample of(NotificationHandle notificationHandle, Data data) { return new AdsNotificationSample(notificationHandle, data); } private  AdsNotificationSample(NotificationHandle notificationHandle, Data data); private  AdsNotificationSample(NotificationHandle notificationHandle, SampleSize sampleSize, Data data); }
AdsNotificationSample implements ByteReadable { public static AdsNotificationSample of(NotificationHandle notificationHandle, Data data) { return new AdsNotificationSample(notificationHandle, data); } private  AdsNotificationSample(NotificationHandle notificationHandle, Data data); private  AdsNotificationSample(NotificationHandle notificationHandle, SampleSize sampleSize, Data data); static AdsNotificationSample of(NotificationHandle notificationHandle, Data data); static AdsNotificationSample of(NotificationHandle notificationHandle, SampleSize sampleSize, Data data); @Override ByteBuf getByteBuf(); NotificationHandle getNotificationHandle(); SampleSize getSampleSize(); Data getData(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
AdsNotificationSample implements ByteReadable { public static AdsNotificationSample of(NotificationHandle notificationHandle, Data data) { return new AdsNotificationSample(notificationHandle, data); } private  AdsNotificationSample(NotificationHandle notificationHandle, Data data); private  AdsNotificationSample(NotificationHandle notificationHandle, SampleSize sampleSize, Data data); static AdsNotificationSample of(NotificationHandle notificationHandle, Data data); static AdsNotificationSample of(NotificationHandle notificationHandle, SampleSize sampleSize, Data data); @Override ByteBuf getByteBuf(); NotificationHandle getNotificationHandle(); SampleSize getSampleSize(); Data getData(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }