org.apache.ignite.ml.recommendation

## Class ObjectSubjectPair<O extends Serializable,S extends Serializable>

- java.lang.Object
- - org.apache.ignite.ml.recommendation.ObjectSubjectPair<O,S>

- Type Parameters:
    `O` - Type of an object of recommendation.
    `S` - Type of a subject of recommendation.
  All Implemented Interfaces:
    Serializable
  Direct Known Subclasses:
    ObjectSubjectRatingTriplet

      public class ObjectSubjectPair<O extends Serializable,S extends Serializable>
      extends Object
      implements Serializable

  Object-subject pair.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ObjectSubjectPair(O obj, S subj)` Constructs a new instance of object-subject pair.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `O` | `getObj()` Returns object of recommendation.
    `S` | `getSubj()` Returns subject of recommendation.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ObjectSubjectPair

          public ObjectSubjectPair(O obj,
                                   S subj)

      Constructs a new instance of object-subject pair.
      Parameters:
        `obj` - Object of recommendation.
        `subj` - Subject of recommendation.

  - ### Method Detail

    - #### getObj

          public O getObj()

      Returns object of recommendation.
      Returns:
        Object of recommendation.

    - #### getSubj

          public S getSubj()

      Returns subject of recommendation.
      Returns:
        Subject of recommendation.

2022 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.12.0
Release Date | : January 10 2022