# Facet

open class Facet(source)

### Deprecated

Will be removed in Gradle 10.

A project facet.

#### Since

1.0

## Constructors

Facet
Link copied to clipboard
constructor()
Creates a new `Facet`.
constructor(node: Node)
Creates a new `Facet`.
constructor(name: String, version: String)
Creates a new `Facet`.
constructor(type: Facet.FacetType, name: String, version: String)
Creates a new `Facet`.

## Types

FacetType
Link copied to clipboard
enum FacetType
An `installed` facet is really present on an Eclipse project whereas facet type `fixed` means that this facet is locked and cannot be simply removed.

## Properties

name
Link copied to clipboard
open var name: String
type
Link copied to clipboard
open var type: Facet.FacetType
version
Link copied to clipboard
open var version: String

## Functions

appendNode
Link copied to clipboard
open fun appendNode(node: Node)
Append node.
equals
Link copied to clipboard
open fun equals(o: Any): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String