Skip to content
Snippets Groups Projects
Verified Commit dae0bfbe authored by Daniel Hornung's avatar Daniel Hornung
Browse files

DOC: A bit of documentation.

parent 7a68b2b0
No related branches found
No related tags found
2 merge requests!58REL: prepare release 0.7.2,!55Re-Merge branch 'f-state-change' into 'dev'
Pipeline #20003 passed
...@@ -89,6 +89,7 @@ test: ...@@ -89,6 +89,7 @@ test:
trigger_build: trigger_build:
tags: [ docker ] tags: [ docker ]
stage: deploy stage: deploy
needs: [ test ]
script: script:
- *env - *env
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
* *
* ** end header * ** end header
*/ */
/** @review Daniel Hornung 2022-03-04 */
package org.caosdb.datetime; package org.caosdb.datetime;
import java.util.Objects; import java.util.Objects;
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
* *
* ** end header * ** end header
*/ */
/** @review Daniel Hornung 2022-03-04 */
package org.caosdb.datetime; package org.caosdb.datetime;
import java.util.ArrayList; import java.util.ArrayList;
......
/* /*
* ** header v3.0
* This file is a part of the CaosDB Project. * This file is a part of the CaosDB Project.
* *
* Copyright (C) 2018 Research Group Biomedical Physics, * Copyright (C) 2018 Research Group Biomedical Physics,
* Max-Planck-Institute for Dynamics and Self-Organization Göttingen * Max-Planck-Institute for Dynamics and Self-Organization Göttingen
* *
*
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as * it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the * published by the Free Software Foundation, either version 3 of the
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
* *
* You should have received a copy of the GNU Affero General Public License * You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* ** end header
*/ */
/** @review Daniel Hornung 2022-03-04 */
package org.caosdb.server.datatype; package org.caosdb.server.datatype;
import com.google.common.base.Objects; import com.google.common.base.Objects;
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
* *
* ** end header * ** end header
*/ */
/** @review Daniel Hornung 2022-03-04 */
package org.caosdb.server.datatype; package org.caosdb.server.datatype;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -81,6 +83,7 @@ public class CollectionValue implements Value, Iterable<IndexedSingleValue> { ...@@ -81,6 +83,7 @@ public class CollectionValue implements Value, Iterable<IndexedSingleValue> {
return list.size(); return list.size();
} }
/** Compares if the content is equal, regardless of the order. */
@Override @Override
public boolean equals(Value val) { public boolean equals(Value val) {
if (val instanceof CollectionValue) { if (val instanceof CollectionValue) {
......
...@@ -4,8 +4,9 @@ ...@@ -4,8 +4,9 @@
* *
* Copyright (C) 2018 Research Group Biomedical Physics, * Copyright (C) 2018 Research Group Biomedical Physics,
* Max-Planck-Institute for Dynamics and Self-Organization Göttingen * Max-Planck-Institute for Dynamics and Self-Organization Göttingen
* Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2022 IndiScale GmbH <info@indiscale.com>
* Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com> * Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com>
* Copyright (C) 2022 Daniel Hornung <d.hornung@indiscale.com>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as * it under the terms of the GNU Affero General Public License as
...@@ -22,6 +23,8 @@ ...@@ -22,6 +23,8 @@
* *
* ** end header * ** end header
*/ */
/** @review Daniel Hornung 2022-03-04 */
package org.caosdb.server.datatype; package org.caosdb.server.datatype;
import java.util.Objects; import java.util.Objects;
...@@ -205,6 +208,14 @@ public class ReferenceValue implements SingleValue { ...@@ -205,6 +208,14 @@ public class ReferenceValue implements SingleValue {
return false; return false;
} }
/**
* Test if this is equal to the other object.
*
* <p>Two references are equal, if 1) they both have IDs and their content is equal or 2) at least
* one does not have an ID, but their names are equal. Otherwise they are considered unequal.
*
* @param val The other object.
*/
@Override @Override
public boolean equals(Value val) { public boolean equals(Value val) {
if (val instanceof ReferenceValue) { if (val instanceof ReferenceValue) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment