@Test public void testEquals() { TsCollection col = TsFactory.instance.createTsCollection(); assertThat(col) .isEqualTo(col) .isNotEqualTo(TsFactory.instance.createTsCollection()) .isEqualTo(TsFactory.instance.createTsCollection("name", col.getMoniker(), TsInformationType.All)); }
@Override public boolean equals(Object obj) { return this == obj || (obj instanceof TsCollection && equals((TsCollection) obj)); }
TsCollection implements ITsIdentified, IDocumented, Iterable<Ts> { @Override public boolean equals(Object obj) { return this == obj || (obj instanceof TsCollection && equals((TsCollection) obj)); } }
TsCollection implements ITsIdentified, IDocumented, Iterable<Ts> { @Override public boolean equals(Object obj) { return this == obj || (obj instanceof TsCollection && equals((TsCollection) obj)); } @Deprecated @Internal  TsCollection(@Nullable String name); @Deprecated @Internal  TsCollection(@Nullable String name, @NonNull TsMoniker moniker); @Deprecated @Internal  TsCollection(@Nullable String name, @NonNull TsMoniker moniker, @Nullable MetaData md, @Nullable Iterable<Ts> ts); @Internal  TsCollection(FactoryCallback factory, @Nullable String name); @Internal  TsCollection(FactoryCallback factory, @Nullable String name, @NonNull TsMoniker moniker); @Internal  TsCollection(FactoryCallback factory, @Nullable String name, @NonNull TsMoniker moniker, @Nullable MetaData md, @Nullable Iterable<Ts> ts); }
TsCollection implements ITsIdentified, IDocumented, Iterable<Ts> { @Override public boolean equals(Object obj) { return this == obj || (obj instanceof TsCollection && equals((TsCollection) obj)); } @Deprecated @Internal  TsCollection(@Nullable String name); @Deprecated @Internal  TsCollection(@Nullable String name, @NonNull TsMoniker moniker); @Deprecated @Internal  TsCollection(@Nullable String name, @NonNull TsMoniker moniker, @Nullable MetaData md, @Nullable Iterable<Ts> ts); @Internal  TsCollection(FactoryCallback factory, @Nullable String name); @Internal  TsCollection(FactoryCallback factory, @Nullable String name, @NonNull TsMoniker moniker); @Internal  TsCollection(FactoryCallback factory, @Nullable String name, @NonNull TsMoniker moniker, @Nullable MetaData md, @Nullable Iterable<Ts> ts); @Override String getName(); String getInvalidDataCause(); void setInvalidDataCause(String message); boolean add(Ts ts); boolean quietAdd(Ts ts); int append(Iterable<? extends Ts> list); int quietAppend(Iterable<? extends Ts> list); int append(TsCollection c); int quietAppend(TsCollection c); TsCollection clean(boolean empty); TsCollection clean(double cntVal, boolean empty); void clear(); boolean contains(Ts s); Ts[] retain(Iterable<Ts> all); Ts[] toArray(); int indexOf(Ts ts); Ts get(int idx); List<TsData> getAllData(); int getCount(); boolean isEmpty(); TsInformationType getInformationType(); @Override MetaData getMetaData(); @Override TsMoniker getMoniker(); TsStatus hasMetaData(); boolean insert(int pos, Ts ts); boolean isLocked(); @Override Iterator<Ts> iterator(); @NonNull Stream<Ts> stream(); boolean load(TsInformationType type); TsCollection makeCopy(); boolean query(TsInformationType type); boolean reload(TsInformationType type); int remove(Iterable<Ts> c); boolean remove(Ts s); void removeAt(int pos); void removeRange(int start, int n); boolean replace(Iterable<Ts> c); boolean quietReplace(Iterable<Ts> c); boolean replace(Ts s); boolean replace(Ts... s); boolean quietReplace(Ts... c); boolean quietReplace(Ts s); Ts search(String name); Ts search(TsMoniker moniker); boolean rename(Ts s, String newname); boolean set(MetaData md); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); @NonNull TsCollectionInformation toInfo(@NonNull TsInformationType type); }
TsCollection implements ITsIdentified, IDocumented, Iterable<Ts> { @Override public boolean equals(Object obj) { return this == obj || (obj instanceof TsCollection && equals((TsCollection) obj)); } @Deprecated @Internal  TsCollection(@Nullable String name); @Deprecated @Internal  TsCollection(@Nullable String name, @NonNull TsMoniker moniker); @Deprecated @Internal  TsCollection(@Nullable String name, @NonNull TsMoniker moniker, @Nullable MetaData md, @Nullable Iterable<Ts> ts); @Internal  TsCollection(FactoryCallback factory, @Nullable String name); @Internal  TsCollection(FactoryCallback factory, @Nullable String name, @NonNull TsMoniker moniker); @Internal  TsCollection(FactoryCallback factory, @Nullable String name, @NonNull TsMoniker moniker, @Nullable MetaData md, @Nullable Iterable<Ts> ts); @Override String getName(); String getInvalidDataCause(); void setInvalidDataCause(String message); boolean add(Ts ts); boolean quietAdd(Ts ts); int append(Iterable<? extends Ts> list); int quietAppend(Iterable<? extends Ts> list); int append(TsCollection c); int quietAppend(TsCollection c); TsCollection clean(boolean empty); TsCollection clean(double cntVal, boolean empty); void clear(); boolean contains(Ts s); Ts[] retain(Iterable<Ts> all); Ts[] toArray(); int indexOf(Ts ts); Ts get(int idx); List<TsData> getAllData(); int getCount(); boolean isEmpty(); TsInformationType getInformationType(); @Override MetaData getMetaData(); @Override TsMoniker getMoniker(); TsStatus hasMetaData(); boolean insert(int pos, Ts ts); boolean isLocked(); @Override Iterator<Ts> iterator(); @NonNull Stream<Ts> stream(); boolean load(TsInformationType type); TsCollection makeCopy(); boolean query(TsInformationType type); boolean reload(TsInformationType type); int remove(Iterable<Ts> c); boolean remove(Ts s); void removeAt(int pos); void removeRange(int start, int n); boolean replace(Iterable<Ts> c); boolean quietReplace(Iterable<Ts> c); boolean replace(Ts s); boolean replace(Ts... s); boolean quietReplace(Ts... c); boolean quietReplace(Ts s); Ts search(String name); Ts search(TsMoniker moniker); boolean rename(Ts s, String newname); boolean set(MetaData md); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); @NonNull TsCollectionInformation toInfo(@NonNull TsInformationType type);  }