Sha256: 349c203d44cd5914ef78f60ec7398f312656912f3fb98f29a9379873c58923d5

Contents?: true

Size: 817 Bytes

Versions: 12

Compression:

Stored size: 817 Bytes

Contents

package org.cx4a.rsense.typing.annotation;

import java.util.List;

public class TypeTuple implements TypeExpression {
    private List<TypeExpression> elements;

    public TypeTuple(List<TypeExpression> elements) {
        this.elements = elements;
    }

    public List<TypeExpression> getList() {
        return elements;
    }

    public Type getType() {
        return Type.TUPLE;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        String delim = "";
        sb.append("(");
        if (elements != null) {
            for (TypeExpression expr : elements) {
                sb.append(delim);
                delim = ", ";
                sb.append(expr.toString());
            }
        }
        sb.append(")");
        return sb.toString();
    }
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rsense-core-0.6.6 src/org/cx4a/rsense/typing/annotation/TypeTuple.java
rsense-core-0.6.5 src/org/cx4a/rsense/typing/annotation/TypeTuple.java
rsense-core-0.6.4 src/org/cx4a/rsense/typing/annotation/TypeTuple.java
rsense-core-0.6.2 src/org/cx4a/rsense/typing/annotation/TypeTuple.java
rsense-core-0.6.1 src/org/cx4a/rsense/typing/annotation/TypeTuple.java
rsense-core-0.6.0 src/org/cx4a/rsense/typing/annotation/TypeTuple.java
rsense-core-0.5.9 src/org/cx4a/rsense/typing/annotation/TypeTuple.java
rsense-core-0.5.8 src/org/cx4a/rsense/typing/annotation/TypeTuple.java
rsense-core-0.5.6 src/org/cx4a/rsense/typing/annotation/TypeTuple.java
rsense-core-0.5.2 src/org/cx4a/rsense/typing/annotation/TypeTuple.java
rsense-core-0.5.1 src/org/cx4a/rsense/typing/annotation/TypeTuple.java
rsense-core-0.5.0 src/org/cx4a/rsense/typing/annotation/TypeTuple.java