Package io.meeds.analytics.model
Record Class SpaceStatisticAttribute
java.lang.Object
java.lang.Record
io.meeds.analytics.model.SpaceStatisticAttribute
- Record Components:
name- the parameter nametype- the typed writer the attribute is written withreader- the value read from the space
public record SpaceStatisticAttribute(String name, StatisticParameterType type, Function<org.exoplatform.social.core.space.model.Space,Object> reader)
extends Record
One attribute the server stamps on an event for its space: the parameter
name, the writer of its type and the value read from the space. The table
of these is the only source of the space attributes an event carries, so a
value a page sends under one of these names is never stored.
-
Constructor Summary
ConstructorsConstructorDescriptionSpaceStatisticAttribute(String name, StatisticParameterType type, Function<org.exoplatform.social.core.space.model.Space, Object> reader) Creates an instance of aSpaceStatisticAttributerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.reader()Returns the value of thereaderrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.voidwrite(StatisticData statisticData, org.exoplatform.social.core.space.model.Space space) Writes the attribute of the given space on the event.
-
Constructor Details
-
SpaceStatisticAttribute
public SpaceStatisticAttribute(String name, StatisticParameterType type, Function<org.exoplatform.social.core.space.model.Space, Object> reader) Creates an instance of aSpaceStatisticAttributerecord class.
-
-
Method Details
-
write
Writes the attribute of the given space on the event.- Parameters:
statisticData- the eventspace- the space the event belongs to
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
reader
Returns the value of thereaderrecord component.- Returns:
- the value of the
readerrecord component
-