⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 table.java

📁 一个demo是关于swing
💻 JAVA
字号:
package com.truemesh.squiggle;import com.truemesh.squiggle.output.Outputable;import com.truemesh.squiggle.output.Output;import com.truemesh.squiggle.output.ToStringer;/** * @author <a href="joe@truemesh.com">Joe Walnes</a> */public class Table implements Outputable {    private String name;    private String alias;    public Table(String name) {        this.name = name;    }    public Table(String name, String alias) {        this.name = name;        this.alias = alias;    }    /**     * Name of table     */    public String getName() {        return name;    }    /**     * Whether this table has an alias assigned.     */    private boolean hasAlias() {        return alias != null;    }    /**     * Short alias of table     */    public String getAlias() {        return hasAlias() ? alias : name;    }    /**     * Get a column for a particular table.     */    public Column getColumn(String columnName) {        return new Column(this, columnName);    }    public boolean equals(Object o) {        if (o == null) return false;        if (!(o instanceof Table)) return false;        return getAlias().equals(((Table) o).getAlias());    }    public void write(Output out) {        out.print(getName());        if (hasAlias()) {            out.print(' ');            out.print(getAlias());        }    }    public String toString() {        return ToStringer.toString(this);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -