rpuch commented on a change in pull request #521:
URL: https://github.com/apache/ignite-3/pull/521#discussion_r774995170
##########
File path:
modules/network/src/main/java/org/apache/ignite/internal/network/serialization/ClassDescriptor.java
##########
@@ -172,4 +172,50 @@ public boolean hasWriteReplace() {
public boolean hasReadResolve() {
return serialization.hasReadResolve();
}
+
+ /**
+ * Returns {@code true} if this is the descriptor of {@code null} values.
+ *
+ * @return {@code true} if this is the descriptor of {@code null} values
+ */
+ public boolean isNull() {
+ return clazz == Null.class;
+ }
+
+ /**
+ * Returns {@code true} if this is the descriptor of {@link
java.util.Collections#singletonList(Object)} type.
+ *
+ * @return {@code true} if this is the descriptor of {@link
java.util.Collections#singletonList(Object)} type
+ */
+ public boolean isSingletonList() {
+ return descriptorId == BuiltinType.SINGLETON_LIST.descriptorId();
Review comment:
Thanks, it really makes sense to have more consistency here. Fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]