java Examples-GroupDocs.Assembly.Examples.Java-src-main-java-com-groupdocs-assembly-examples-Busines

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java Examples-GroupDocs.Assembly.Examples.Java-src-main-java-com-groupdocs-assembly-examples-Busines相关的知识,希望对你有一定的参考价值。

// For complete examples and data files, please go to https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-Java
public static class Manager {
	public Manager(String name, int age, Iterable<Contract> contracts) {
		mName = name;
		mAge = age;
		mContracts = contracts;
	}

	public String getName() {
		return mName;
	}

	public int getAge() {
		return mAge;
	}

	public String getPhoto() throws Exception {
		return CommonUtilities.image + "/no-photo.jpg";
	}
	public String getOuterDoc() throws Exception{
		return CommonUtilities.outerDoc + "/OuterDoc.docx";
	}

	public Iterable<Contract> getContracts() {
		return mContracts;
	}

	private final String mName;
	private final int mAge;
	private final Iterable<Contract> mContracts;
}

public static class Contract {
	public Contract(Manager manager, Client client, float price, Date date) {
		mManager = manager;
		mClient = client;
		mPrice = price;
		mDate = date;
	}

	public Manager getManager() {
		return mManager;
	}

	public Client getClient() {
		return mClient;
	}

	public float getPrice() {
		return mPrice;
	}

	public Date getDate() {
		return mDate;
	}

	private final Manager mManager;
	private final Client mClient;
	private final float mPrice;
	private final Date mDate;
}

public static class Client {
	public Client(String name) {
		mName = name;
	}

	public String getName() {
		return mName;
	}

	private final String mName;
}

以上是关于java Examples-GroupDocs.Assembly.Examples.Java-src-main-java-com-groupdocs-assembly-examples-Busines的主要内容,如果未能解决你的问题,请参考以下文章

Java 布尔运算

java [Java] Java常用代码#java

Java - 35 Java 实例

Java While 循环

Java 字符串

Java If ... Else