com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class TaskLink

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<TaskLink>


    public class TaskLink
    extends Object
    implements com.aspose.ms.System.IEquatable<TaskLink>

    Represents a predecessor link.

    • Method Detail

      • equals

        public final boolean equals(TaskLink other)

        Returns a value indicating whether this instance is equal to a specified object.

        Parameters:
        other - The specified instance of the TaskLink class to compare with this instance.
        Returns:
        <b>True</b> if the specified instance of the TaskLink class has the same predecessor and successor tasks as this instance; otherwise, <b>false</b>.
      • equals

        public boolean equals(Object obj)

        Returns a value indicating whether this instance is equal to a specified object.

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<TaskLink>
        Overrides:
        equals in class Object
        Parameters:
        obj - The object to compare with this instance.
        Returns:
        <b>True</b> if the specified object is a TaskLink that has the same predecessor and successor as this instance; otherwise, <b>false</b>.
      • getCrossProjectName

        public final String getCrossProjectName()

        Gets the external predecessor project.

        Returns:
        the external predecessor project.
      • setCrossProjectName

        public final void setCrossProjectName(String value)

        Sets the external predecessor project.

        Parameters:
        value - the external predecessor project.
      • getLagFormat

        public final int getLagFormat()

        Gets the format for expressing the lag format.

        Returns:
        the format for expressing the lag format.
      • setLagFormat

        public final void setLagFormat(int value)

        Sets the format for expressing the lag format.

        Parameters:
        value - the format for expressing the lag format.
      • getLinkLag

        public final int getLinkLag()

        Gets the amount of lag in tenths of a minute.

        Returns:
        the amount of lag in tenths of a minute.
      • setLinkLag

        public final void setLinkLag(int value)

        Sets the amount of lag in tenths of a minute.

        Parameters:
        value - the amount of lag in tenths of a minute.
      • getLinkType

        public final int getLinkType()

        Gets the type of a link.

        Returns:
        the type of a link.
      • setLinkType

        public final void setLinkType(int value)

        Sets the type of a link.

        Parameters:
        value - the type of a link.
      • getPredTask

        public final Task getPredTask()

        Gets the predecessor task.

        Returns:
        the predecessor task.
      • setPredTask

        public final void setPredTask(Task value)

        Sets the predecessor task.

        Parameters:
        value - the predecessor task.
      • getSuccTask

        public final Task getSuccTask()

        Gets the successor task.

        Returns:
        the successor task.
      • setSuccTask

        public final void setSuccTask(Task value)

        Sets the successor task.

        Parameters:
        value - the successor task.
      • hashCode

        public int hashCode()

        Returns a hash code value for the instance of the TaskLink class.

        Overrides:
        hashCode in class Object
        Returns:
        returns a hash code value for this object.
      • isCrossProject

        public final boolean isCrossProject()

        Gets a value indicating whether a predecessor is part of another project.

        Returns:
        a value indicating whether a predecessor is part of another project.
      • setCrossProject

        public final void setCrossProject(boolean value)

        Sets a value indicating whether a predecessor is part of another project.

        Parameters:
        value - a value indicating whether a predecessor is part of another project.
      • toString

        public String toString()

        Returns string representation of a TaskLink. The exact details of the representation are unspecified and subject to change.

        Overrides:
        toString in class Object
        Returns:
        string which represents TaskLink object.