Java 8 Media - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 Media class.

This code example shows how to use the following methods:getValue, getName
				"Attribute '" + this.chromaticity.getName() + "' with value '" + this.chromaticity.getValue() + "' is not supported.");
			this.printRequestAttributeSet.add(this.chromaticity);
		} 
 
		if (this.mediaSizeName != null) {
			Assert.isTrue(this.printServiceExecutor.getPrintService().isAttributeValueSupported(this.mediaSizeName, null, null),
				"Attribute '" + this.mediaSizeName.getName()
				+ "' with value '" + this.mediaSizeName.getValue() + "' is not supported.");
			this.printRequestAttributeSet.add(this.mediaSizeName);
		} 
 
		if (this.mediaTray != null) {
			Assert.isTrue(this.printServiceExecutor.getPrintService().isAttributeValueSupported(this.mediaTray, this.docFlavor, this.printServiceExecutor.getPrintService().getAttributes()),
				"Attribute value '" + this.mediaTray + "' is not supported.");
			this.printRequestAttributeSet.add(this.mediaTray);
		} 
 
		if (this.sides!=null) {
			Assert.isTrue(this.printServiceExecutor.getPrintService().isAttributeValueSupported(this.sides, this.docFlavor, this.printServiceExecutor.getPrintService().getAttributes()),
				"Attribute value '" + this.sides + "' is not supported.");
6
CodeRank
This code example shows how to use the following methods:equals
See Code Examples for Java 8 Media Methods: